From 008d6f437d816cb07b3f25f90637b5d552994e63 Mon Sep 17 00:00:00 2001 From: Christopher Bloodsworth Date: Fri, 21 Feb 2025 17:32:47 -0500 Subject: [PATCH] Change permissions for volumes, install certs. --- Dockerfile | 1 + start_container.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4c1ef6..ac79b52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ FROM debian:bullseye-slim AS runtime # Install runtime dependencies RUN apt-get update \ && apt-get -y install libsqlite3-0 \ + && apt -y install ca-certificates \ && rm -rf /var/lib/apt/lists/* # Create a directory for runtime files diff --git a/start_container.sh b/start_container.sh index e38d094..2c84e18 100755 --- a/start_container.sh +++ b/start_container.sh @@ -10,9 +10,9 @@ fi docker run \ --network=host \ - --volume "$LEEKBOT/db:$APPDIR/db" \ - --volume "$LEEKBOT/.env:$APPDIR/.env" \ - --volume "$LEEKBOT/queries:$APPDIR/queries" \ + --volume "$LEEKBOT/db:$APPDIR/db:Z" \ + --volume "$LEEKBOT/.env:$APPDIR/.env:Z" \ + --volume "$LEEKBOT/queries:$APPDIR/queries:Z" \ --detach \ --name "leekbot" \ $IMAGE