From 9600a71150a5c5c3cf295afae03bf73480b8caaf Mon Sep 17 00:00:00 2001 From: jamiegyoung Date: Wed, 27 Sep 2023 23:57:39 +0100 Subject: [PATCH] fix(dockerfile): update dev dockerfile to build node_modules rather than using local --- Dockerfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5e08959..ebedef7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +# 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"] +