Skip to content

Commit

Permalink
[SOK-fix-docker]
Browse files Browse the repository at this point in the history
  • Loading branch information
gloginov committed Nov 26, 2024
1 parent e4fa9e1 commit 763fe6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ FROM --platform=linux/amd64 node:20 AS base

COPY . /usr/src/app
WORKDIR /usr/src/app

RUN yarn install

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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
- bridge
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
working_dir: /usr/src/app
environment:
POSTGRES_PORT: ${POSTGRES_PORT}
Expand Down

0 comments on commit 763fe6f

Please sign in to comment.