some refinement
Build and Publish / Metadata (push) Has been cancelled
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
2026-04-07 12:44:55 +02:00
parent 89e1db8edf
commit 0ed1cb4355
14 changed files with 390 additions and 104 deletions
+9 -1
View File
@@ -30,11 +30,19 @@ FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
# Create non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
WORKDIR /home/appuser/
COPY --from=go-builder /go-otel .
COPY --from=go-builder /app/otel-ui/dist ./dist
# Ensure the appuser owns the files
RUN chown -R appuser:appgroup /home/appuser/
USER appuser
EXPOSE 8080
CMD ["./go-otel"]