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
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
ARG OPA_BUILD=permit
ARG TARGETPLATFORM
ARG TARGETARCH

# RUST BUILD STAGE -----------------------------------
# Build the Rust PDP binary for all targets
# ----------------------------------------------------
Expand Down Expand Up @@ -77,10 +74,12 @@ RUN addgroup -S permit -g 1001 && \
# Create backup directory with permissions
RUN mkdir -p /app/backup && chmod -R 777 /app/backup

# Install necessary libraries in a single RUN command
# Install necessary libraries and delete SQLite in a single RUN command
RUN apk update && \
apk upgrade && \
apk add --no-cache bash build-base libffi-dev libressl-dev musl-dev zlib-dev gcompat wget
apk add --no-cache bash build-base libffi-dev libressl-dev musl-dev zlib-dev gcompat wget && \
apk del sqlite


# Copy OPA binary from the build stage
COPY --from=opa_build --chmod=755 /opa /app/bin/opa
Expand Down
Loading