From ae877f6901353a75a190aa9be69c294f80629095 Mon Sep 17 00:00:00 2001 From: ralf_weber Date: Wed, 22 Jan 2025 11:16:50 +0100 Subject: [PATCH] fix: INF-186: Add missing dependency --- .github/workflows/push-image.yml | 2 ++ Dockerfile | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 4cc02f6..c443724 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -16,6 +16,8 @@ jobs: contents: read packages: write steps: + - name: Setup sqlite3 + run: sudo apt update && sudo apt-get install libsqlite3-dev - name: Setup rust uses: actions-rs/toolchain@v1.0.6 with: diff --git a/Dockerfile b/Dockerfile index d8ad0eb..493a99a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM debian:bookworm-slim -RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates sqlite3 +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates RUN update-ca-certificates COPY graph.db3 . COPY templates/ templates/ COPY target/release/server . +USER 1000 + CMD ["./server"]