mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2024-09-20 06:56:05 +08:00
chore: small changes dockerfile
This commit is contained in:
parent
26cb077a70
commit
a731b8b3af
|
@ -14,4 +14,5 @@ yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
.yarn/cache
|
.yarn/cache
|
||||||
|
db.json
|
||||||
backend/data/db.json
|
backend/data/db.json
|
||||||
|
|
|
@ -17,9 +17,10 @@ FROM node:lts-alpine
|
||||||
WORKDIR /app/frontend/build
|
WORKDIR /app/frontend/build
|
||||||
COPY --link --from=frontend-build /app/frontend/build /app/frontend/build/
|
COPY --link --from=frontend-build /app/frontend/build /app/frontend/build/
|
||||||
|
|
||||||
WORKDIR /app/backend
|
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
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue