Skip to content

Commit c9d6635

Browse files
authored
Update Dockerfile to install necessary libraries and remove SQLite during build process (#283)
* Update Dockerfile to install necessary libraries and remove SQLite during build process * Remove unused ARGs from Dockerfile to streamline build process
1 parent b4577b5 commit c9d6635

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
ARG OPA_BUILD=permit
2-
ARG TARGETPLATFORM
3-
ARG TARGETARCH
4-
52
# RUST BUILD STAGE -----------------------------------
63
# Build the Rust PDP binary for all targets
74
# ----------------------------------------------------
@@ -77,10 +74,12 @@ RUN addgroup -S permit -g 1001 && \
7774
# Create backup directory with permissions
7875
RUN mkdir -p /app/backup && chmod -R 777 /app/backup
7976

80-
# Install necessary libraries in a single RUN command
77+
# Install necessary libraries and delete SQLite in a single RUN command
8178
RUN apk update && \
8279
apk upgrade && \
83-
apk add --no-cache bash build-base libffi-dev libressl-dev musl-dev zlib-dev gcompat wget
80+
apk add --no-cache bash build-base libffi-dev libressl-dev musl-dev zlib-dev gcompat wget && \
81+
apk del sqlite
82+
8483

8584
# Copy OPA binary from the build stage
8685
COPY --from=opa_build --chmod=755 /opa /app/bin/opa

0 commit comments

Comments
 (0)