From 69fc67ecec932ef2268fb63964bdc212f3a274b0 Mon Sep 17 00:00:00 2001 From: Simon Dalvai Date: Mon, 13 May 2024 13:19:54 +0200 Subject: [PATCH] fix docker setup --- docker-compose.yml | 3 +-- infrastructure/docker/Dockerfile | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f6e3a74..8f12880 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + - .:/app diff --git a/infrastructure/docker/Dockerfile b/infrastructure/docker/Dockerfile index e3a7611..457e2ec 100644 --- a/infrastructure/docker/Dockerfile +++ b/infrastructure/docker/Dockerfile @@ -1,10 +1,8 @@ FROM node:20 -WORKDIR /app +COPY . . -COPY package*.json ./ RUN npm install -COPY . . -CMD ["npm", "start"] \ No newline at end of file +CMD npm run start