Skip to content

Commit

Permalink
fix: docker-compose failed to start service.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsengyushiang committed May 6, 2024
1 parent b93939b commit ec6ee8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM node:18

WORKDIR /app

COPY package*.json ./
COPY ./server/package*.json ./

RUN npm install

COPY . .
COPY ./server .

0 comments on commit ec6ee8d

Please sign in to comment.