From d39d6913e6980a4d277244069b360f94803eec37 Mon Sep 17 00:00:00 2001 From: caetano melone Date: Tue, 23 Apr 2024 17:43:17 -0700 Subject: [PATCH] rootless -> root container because of Litestream permissions issues I have no idea why, but Litestream sets a replicated file's permissions to 600 [0], which makes it impossible to access from a rootless container, if the file is being exposed through a volume. [0] https://github.com/benbjohnson/litestream/blob/5be467a478adcffc5b3999b9503cc676c2bf09f1/internal/internal.go#L62 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1c790ac..d512323 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY requirements.txt /requirements.txt RUN /venv/bin/pip install --disable-pip-version-check -r /requirements.txt # Copy the virtualenv into a distroless image -FROM gcr.io/distroless/python3-debian12:nonroot +FROM gcr.io/distroless/python3-debian12:latest COPY --from=build /venv /venv COPY ./gantry /app/gantry COPY ./db /db