mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
fix: add missing user,usergroup creation
This commit is contained in:
parent
eb4da92d13
commit
4cd8478ccd
@ -54,7 +54,9 @@ FROM base AS runner
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN sed -i 's#https\?://dl-cdn.alpinelinux.org/alpine#https://mirror.nju.edu.cn/alpine#g' /etc/apk/repositories && \
|
RUN sed -i 's#https\?://dl-cdn.alpinelinux.org/alpine#https://mirror.nju.edu.cn/alpine#g' /etc/apk/repositories && \
|
||||||
apk add --no-cache curl
|
apk add --no-cache curl && \
|
||||||
|
addgroup --system --gid 1001 nodejs && \
|
||||||
|
adduser --system --uid 1001 nextjs
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
Loading…
Reference in New Issue
Block a user