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