Skip to content

Commit

Permalink
fix(dockerfile): update dev dockerfile to build node_modules rather t…
Browse files Browse the repository at this point in the history
…han using local
  • Loading branch information
jamiegyoung committed Sep 27, 2023
1 parent 2b4ac50 commit 9600a71
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Development Dockerfile for Next.js and pnpm
FROM node:16-alpine AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app

# Ls the current directory
COPY . .

RUN npm install -g pnpm

RUN pnpm install --frozen-lockfile

EXPOSE 3000

CMD ["pnpm", "dev"]
# Development Dockerfile for Next.js and pnpm
FROM node:16-alpine AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app

COPY . .

RUN npm install -g pnpm

RUN pnpm install --frozen-lockfile

EXPOSE 3000

CMD ["pnpm", "dev"]

1 comment on commit 9600a71

@vercel
Copy link

@vercel vercel bot commented on 9600a71 Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.