Skip to content

Commit

Permalink
fix: docker running restar error
Browse files Browse the repository at this point in the history
  • Loading branch information
huanghanzhilian committed Jan 20, 2024
1 parent 9cc9e5c commit 6076b1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ RUN npm install --registry https://registry.npm.taobao.org

COPY . /app

RUN mkdir -p /app/.next/cache/images
VOLUME /app/.next/cache/images

RUN npm run build

ENV MONGODB_URL "mongodb://db:27017/choiceshop"
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ services:
context: .
dockerfile: Dockerfile
restart: always
volumes:
- ./:/app/
- /app/node_modules
- /app/.next
ports:
- "3000:3000"
environment:
Expand Down

0 comments on commit 6076b1c

Please sign in to comment.