Skip to content

Commit e3d5b77

Browse files
author
ThomasSamson
committed
switch on user id in chown
1 parent 4f72635 commit e3d5b77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pwa/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ COPY --from=builder --link /srv/app/.next/standalone ./
119119
COPY --from=builder --link /srv/app/public/* ./public/
120120
COPY --from=builder --link /srv/app/.next/static ./.next/static
121121

122-
RUN chown -R 1001:1001 ./
123-
RUN chown -R 1001:1001 ./public/
124-
RUN chown -R 1001:1001 ./.next/static
122+
RUN chown -R nextjs:nodejs ./
123+
RUN chown -R nextjs:nodejs ./public/
124+
RUN chown -R nextjs:nodejs ./.next/static
125125

126126
USER nextjs
127127

0 commit comments

Comments
 (0)