fix: permission changes of docker container brakes existing installations
This commit is contained in:
@@ -34,13 +34,6 @@ RUN apk update --no-cache
|
|||||||
RUN apk upgrade --no-cache
|
RUN apk upgrade --no-cache
|
||||||
RUN apk add --no-cache curl
|
RUN apk add --no-cache curl
|
||||||
|
|
||||||
# Set user and group IDs for the node user
|
|
||||||
ARG UID=1000
|
|
||||||
ARG GID=1000
|
|
||||||
RUN deluser node
|
|
||||||
RUN adduser -u $UID -g $GID node -D
|
|
||||||
USER node
|
|
||||||
|
|
||||||
WORKDIR /opt/app/frontend
|
WORKDIR /opt/app/frontend
|
||||||
COPY --from=frontend-builder /opt/app/public ./public
|
COPY --from=frontend-builder /opt/app/public ./public
|
||||||
COPY --from=frontend-builder /opt/app/.next/standalone ./
|
COPY --from=frontend-builder /opt/app/.next/standalone ./
|
||||||
|
|||||||
Reference in New Issue
Block a user