Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -30,9 +30,8 @@ ENV NODE_ENV production
|
|
| 30 |
# Uncomment the following line in case you want to disable telemetry during runtime.
|
| 31 |
# ENV NEXT_TELEMETRY_DISABLED 1
|
| 32 |
|
| 33 |
-
RUN \
|
| 34 |
-
|
| 35 |
-
adduser --system --uid 1001 nextjs
|
| 36 |
|
| 37 |
COPY --from=builder --link /app/public ./public
|
| 38 |
|
|
|
|
| 30 |
# Uncomment the following line in case you want to disable telemetry during runtime.
|
| 31 |
# ENV NEXT_TELEMETRY_DISABLED 1
|
| 32 |
|
| 33 |
+
RUN groupadd -g 1001 nodejs \
|
| 34 |
+
&& useradd -u 1001 -g nodejs -r -s /usr/sbin/nologin nextjs
|
|
|
|
| 35 |
|
| 36 |
COPY --from=builder --link /app/public ./public
|
| 37 |
|