This commit is contained in:
@@ -28,9 +28,10 @@ RUN apk add --no-cache ca-certificates tzdata wget
|
||||
COPY --from=builder /out/freemoto-web /app/web/freemoto-web
|
||||
COPY app/web/static/ /app/web/static/
|
||||
|
||||
# Use non-root user
|
||||
RUN adduser -S -D -H -h /nonexistent appuser && \
|
||||
chown -R appuser:appuser /app
|
||||
# Use non-root user (create group explicitly for Alpine)
|
||||
RUN addgroup -S appuser \
|
||||
&& adduser -S -D -H -h /nonexistent -G appuser appuser \
|
||||
&& chown -R appuser:appuser /app
|
||||
USER appuser
|
||||
|
||||
ENV PORT=8080
|
||||
|
||||
Reference in New Issue
Block a user