Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ FROM alpine:latest

WORKDIR /app

# Create non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup

# Copy binary from builder (templates are embedded via go:embed)
COPY --from=builder /build/server .

# Switch to non-root user
USER appuser

# Expose port
EXPOSE 8080

Expand Down