diff --git a/.docker/server/Dockerfile b/.docker/server/Dockerfile index 28fe031..7e3e798 100755 --- a/.docker/server/Dockerfile +++ b/.docker/server/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index b9eea59..ee6e7b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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}