Skip to content

Commit

Permalink
Docker ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Glowstudent777 committed Jan 1, 2025
1 parent 428398a commit 3ef7de2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.git
.gitignore
*.md
dist
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ WORKDIR /app

RUN yarn global add pnpm

COPY package.json pnpm-lock.yaml ./
COPY package.json ./
COPY pnpm-lock.yaml ./

RUN pnpm install

Expand All @@ -17,6 +18,7 @@ FROM node:23-alpine AS runtime

WORKDIR /app

COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
Expand Down

0 comments on commit 3ef7de2

Please sign in to comment.