From 2b6e1ca09b3cc2190112ad2dd53af7dbd498936d Mon Sep 17 00:00:00 2001 From: Tine Date: Sun, 18 Feb 2024 11:34:03 +0100 Subject: [PATCH] ci(deploy): fix permissions for data --- build/Dockerfile | 2 +- justfile | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index c159f66..05890f1 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -19,7 +19,7 @@ RUN mkdir -p /data ### # Final production -FROM gcr.io/distroless/base-debian12:nonroot as production +FROM gcr.io/distroless/base-debian12:latest as production COPY --from=builder /bin/zdravko /bin/zdravko COPY LICENSE /LICENSE COPY README.md /README.md diff --git a/justfile b/justfile index e25620c..7e39e80 100644 --- a/justfile +++ b/justfile @@ -11,6 +11,17 @@ STATIC_DIR := "./web/static" build: docker build -f build/Dockerfile -t {{DOCKER_IMAGE}} . +run-docker: + docker run -p 8080:8080 \ + -e SESSION_SECRET \ + -e OAUTH2_CLIENT_ID \ + -e OAUTH2_CLIENT_SECRET \ + -e OAUTH2_ENDPOINT_TOKEN_URL \ + -e OAUTH2_ENDPOINT_AUTH_URL \ + -e OAUTH2_ENDPOINT_USER_INFO_URL \ + -e OAUTH2_ENDPOINT_LOGOUT_URL \ + {{DOCKER_IMAGE}} + # Run full development environment run: devbox services up