Skip to content

Commit

Permalink
ci(dockerfile): dockerfile process test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Li committed Jul 22, 2024
1 parent 825d4c7 commit 143e5c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
docker pull $IMAGE
docker stop $CONTAINER || true
docker rm $CONTAINER || true
docker run --no-cache -d --name $CONTAINER -p 80:80 $IMAGE
docker run -d --name $CONTAINER -p 80:80 $IMAGE
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ RUN pnpm run build

FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 143e5c8

Please sign in to comment.