Skip to content

Commit

Permalink
fix: перенес команды билдинга на этап base
Browse files Browse the repository at this point in the history
  • Loading branch information
shamemask committed Dec 3, 2024
1 parent 53db484 commit 20f926b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ FROM --platform=linux/amd64 node:20 AS base
COPY . /usr/src/app
WORKDIR /usr/src/app

RUN yarn install
RUN yes | yarn bootstrap

RUN yarn build
EXPOSE $SERVER_PORT

FROM base AS dev
CMD [ "npm", "run", "dev" ]
# CMD /bin/bash -c "tail -f /dev/null"

FROM base AS prod
RUN yarn build
CMD [ "npm", "run", "preview" ]
CMD [ "npm", "run", "preview" ]

0 comments on commit 20f926b

Please sign in to comment.