relocate sources

This commit is contained in:
Thomas Peetz
2025-04-21 03:56:55 +02:00
parent 1fc726ee4b
commit ee78af1abe
+10 -12
View File
@@ -22,16 +22,16 @@ RUN uv sync
FROM python:3.13-slim-bookworm AS production FROM python:3.13-slim-bookworm AS production
# The following secrets are available during build time # The following secrets are available during build time
# RUN --mount=type=secret,id=DB_PASSWORD \ RUN --mount=type=secret,id=DB_PASSWORD \
# --mount=type=secret,id=DB_USER \ --mount=type=secret,id=DB_USER \
# --mount=type=secret,id=DB_NAME \ --mount=type=secret,id=DB_NAME \
# --mount=type=secret,id=DB_HOST \ --mount=type=secret,id=DB_HOST \
# --mount=type=secret,id=DB_PORT \ --mount=type=secret,id=DB_PORT \
# DB_PASSWORD=/run/secrets/DB_PASSWORD \ DB_PASSWORD=/run/secrets/DB_PASSWORD \
# DB_USER=$(cat /run/secrets/DB_USER) \ DB_USER=$(cat /run/secrets/DB_USER) \
# DB_NAME=$(cat /run/secrets/DB_NAME) \ DB_NAME=$(cat /run/secrets/DB_NAME) \
# DB_HOST=$(cat /run/secrets/DB_HOST) \ DB_HOST=$(cat /run/secrets/DB_HOST) \
# DB_PORT=$(cat /run/secrets/DB_PORT) DB_PORT=$(cat /run/secrets/DB_PORT)
# RUN --mount=type=secret,id=secret-key,target=secrets.json # RUN --mount=type=secret,id=secret-key,target=secrets.json
@@ -41,8 +41,6 @@ USER appuser
WORKDIR /app WORKDIR /app
COPY /src src COPY /src src
COPY ./config/kontor-docker/logging-config.yaml /home/appuser/.config/kontor-docker/logging-config.yaml
COPY ./config/kontor-docker/database-config.yaml /home/appuser/.config/kontor-docker/database-config.yaml
COPY --from=builder /app/.venv .venv COPY --from=builder /app/.venv .venv
# Set up environment variables for production # Set up environment variables for production