ci(deploy): fix permissions for data

This commit is contained in:
Tine 2024-02-18 11:34:03 +01:00
parent dc3251d00f
commit 2b6e1ca09b
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
2 changed files with 12 additions and 1 deletions

View file

@ -19,7 +19,7 @@ RUN mkdir -p /data
### ###
# Final production # 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 --from=builder /bin/zdravko /bin/zdravko
COPY LICENSE /LICENSE COPY LICENSE /LICENSE
COPY README.md /README.md COPY README.md /README.md

View file

@ -11,6 +11,17 @@ STATIC_DIR := "./web/static"
build: build:
docker build -f build/Dockerfile -t {{DOCKER_IMAGE}} . 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 full development environment
run: run:
devbox services up devbox services up