complete overhaul
Some checks failed
build-and-push / docker (push) Failing after 10m36s

This commit is contained in:
2025-09-18 00:23:21 +02:00
parent 6afcfaa5b3
commit a2743dd7fb
11 changed files with 1201 additions and 271 deletions

View File

@@ -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