diff --git a/docker-compose.yml b/docker-compose.yml index d22c594..e593130 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: dockerfile: ./server/Dockerfile command: node app.js volumes: - - ./server:/app + - ./server/app.js:/app/app.js prometheus: image: prom/prometheus diff --git a/server/Dockerfile b/server/Dockerfile index 5cb1f65..aadf9f2 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -2,8 +2,8 @@ FROM node:18 WORKDIR /app -COPY package*.json ./ +COPY ./server/package*.json ./ RUN npm install -COPY . . \ No newline at end of file +COPY ./server . \ No newline at end of file