Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ITegs committed Oct 29, 2024
1 parent c330784 commit 357b89d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ RUN go build -o /build/httpdf-server ./cmd/server
# +-----------------------------------------------------------------------------
FROM alpine:${ALPINE_VERSION}

USER appuser

# Install runtime dependencies
# Install necessary packages, including Chromium
RUN apk add --no-cache chromium

# Create an appuser
RUN adduser -D appuser

USER appuser

# Copy the compiled binaries from the builder image
COPY --from=builder --chown=appuser /build/* /usr/local/bin/

Expand Down

0 comments on commit 357b89d

Please sign in to comment.