Skip to content

Commit

Permalink
fix docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed May 13, 2024
1 parent c772133 commit 69fc67e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ services:
build:
context: .
dockerfile: infrastructure/docker/Dockerfile
entrypoint: npm run dev | pino-pretty
restart: unless-stopped
env_file: .env
ports:
- "${SERVER_PORT}:3000"
- "9229:9229"
volumes:
- .:/app
- .:/app
6 changes: 2 additions & 4 deletions infrastructure/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM node:20

WORKDIR /app
COPY . .

COPY package*.json ./
RUN npm install

COPY . .

CMD ["npm", "start"]
CMD npm run start

0 comments on commit 69fc67e

Please sign in to comment.