ci: fix dockerfile

This commit is contained in:
dec0dOS 2023-10-04 22:37:10 +01:00
parent 4ae93f95f7
commit bc99b5e70b

View file

@ -7,7 +7,7 @@ WORKDIR /app/
COPY --link tsconfig.json package.json yarn.lock* .yarnrc.yml ./ COPY --link tsconfig.json package.json yarn.lock* .yarnrc.yml ./
COPY --link .yarn/ ./.yarn COPY --link .yarn/ ./.yarn
WORKDIR /app/frontend WORKDIR /app/frontend
COPY --link ./frontend/package.json /app/frontend COPY --link ./frontend/package*.json /app/frontend
RUN yarn workspaces focus frontend RUN yarn workspaces focus frontend
COPY --link ./frontend /app/frontend COPY --link ./frontend /app/frontend
RUN yarn build RUN yarn build
@ -23,7 +23,7 @@ WORKDIR /app/
COPY --link package.json yarn.lock* .yarnrc.yml ./ COPY --link package.json yarn.lock* .yarnrc.yml ./
COPY --link .yarn/ ./.yarn COPY --link .yarn/ ./.yarn
WORKDIR /app/backend WORKDIR /app/backend
COPY --link ./backend/package.json /app/backend COPY --link ./backend/package*.json /app/backend
RUN yarn workspaces focus --production backend && yarn cache clean RUN yarn workspaces focus --production backend && yarn cache clean
COPY --link ./backend /app/backend COPY --link ./backend /app/backend