Skip to content

Commit

Permalink
chore: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
quangkeu95 committed Sep 7, 2024
1 parent cc00c74 commit beb293b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.git
.gitignore
*.md
dist
dist
.env.*
4 changes: 4 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@ jobs:
file: ${{ env.DOCKER_FILE_PATH }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV NODE_ENV=production
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install typescript -g && pnpm install --frozen-lockfile
RUN pnpm run build

FROM base
FROM node:20-slim AS runner
WORKDIR /app
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist
Expand Down

0 comments on commit beb293b

Please sign in to comment.