Skip to content

Commit 9e442b1

Browse files
committed
Update Dockerfile to install necessary libraries and remove SQLite during build process
1 parent b4577b5 commit 9e442b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ RUN addgroup -S permit -g 1001 && \
7777
# Create backup directory with permissions
7878
RUN mkdir -p /app/backup && chmod -R 777 /app/backup
7979

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

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

0 commit comments

Comments
 (0)