Skip to content

Commit e2409cf

Browse files
author
Alan Christie
committed
A fix for package.json version
1 parent d07ba2e commit e2409cf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ RUN addgroup -g 1001 -S nodejs && \
1010
apk add --no-cache libc6-compat
1111

1212
WORKDIR /app
13-
COPY package.json ./
14-
COPY pnpm-lock.yaml ./
13+
COPY . .
1514

1615
# Replace the application version (in package.json)
1716
# with any defined 'tag', otherwise leave it at 0.0.0.
@@ -23,8 +22,6 @@ RUN sed -i s/'"0.0.0"'/'"'${TAG:-0.0.0}'"'/ package.json && \
2322
npm i -g [email protected] && \
2423
pnpm i
2524

26-
COPY . .
27-
2825
RUN chown --recursive nextjs:nodejs .
2926

3027
# **DO NOT** set 'NODE_ENV any earlier than this in the Dockerfile.

0 commit comments

Comments
 (0)