Spaces:
Runtime error
Runtime error
wuyiqun0718
commited on
Commit
•
f36ff11
1
Parent(s):
9860da3
give make access
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -30,16 +30,17 @@ WORKDIR /app
|
|
30 |
ENV NODE_ENV production
|
31 |
|
32 |
RUN \
|
33 |
-
addgroup --system --gid
|
34 |
-
adduser --system --uid
|
35 |
|
36 |
COPY --from=builder --link /app/public ./public
|
37 |
|
38 |
# Automatically leverage output traces to reduce image size
|
39 |
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
40 |
COPY --chown=nextjs:nodejs --from=builder /app/ ./
|
41 |
-
COPY --from=builder --link --chown=
|
42 |
-
COPY --from=builder --link --chown=
|
|
|
43 |
|
44 |
USER nextjs
|
45 |
|
|
|
30 |
ENV NODE_ENV production
|
31 |
|
32 |
RUN \
|
33 |
+
addgroup --system --gid 1000 nodejs; \
|
34 |
+
adduser --system --uid 1000 nextjs
|
35 |
|
36 |
COPY --from=builder --link /app/public ./public
|
37 |
|
38 |
# Automatically leverage output traces to reduce image size
|
39 |
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
40 |
COPY --chown=nextjs:nodejs --from=builder /app/ ./
|
41 |
+
COPY --from=builder --link --chown=1000:1000 /app/.next/standalone ./
|
42 |
+
COPY --from=builder --link --chown=1000:1000 /app/.next/static ./.next/static
|
43 |
+
COPY --from=builder --link --chown=1000:1000 /app/.next/cache/images ./.next/cache/images
|
44 |
|
45 |
USER nextjs
|
46 |
|