Skip to content

Commit

Permalink
chore: 修改docker文件目录
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwenbin committed Jun 25, 2024
1 parent 1c6719e commit 7577bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ CMD ["pnpm", "dev"]

FROM base AS backend
RUN npm i -g pm2-dev
COPY --from=build /app/backend /app/backend
WORKDIR /app/backend
COPY --from=build /app/backend /usr/src/fullstack-blog/app/backend
WORKDIR /usr/src/fullstack-blog/app/backend
EXPOSE 8002
CMD ["pnpm", "docker-dev"]
3 changes: 1 addition & 2 deletions compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ services:
- ./.prettierrc.json:/usr/src/fullstack-blog/.prettierrc.json
- ./.prettierignore:/usr/src/fullstack-blog/.prettierignore
environment:
# 设置任何环境变量
- NODE_ENV=development

backend:
image: fullstack-blog-backend:latest
ports:
- "8002:8002"
volumes:
- ./app/backend/src:/app/backend/src
- ./app/backend/src:/usr/src/fullstack-blog/app/backend/src
environment:
- NODE_ENV=development

Expand Down

0 comments on commit 7577bc1

Please sign in to comment.