relocate sources
This commit is contained in:
+10
-12
@@ -22,16 +22,16 @@ RUN uv sync
|
||||
FROM python:3.13-slim-bookworm AS production
|
||||
|
||||
# The following secrets are available during build time
|
||||
# RUN --mount=type=secret,id=DB_PASSWORD \
|
||||
# --mount=type=secret,id=DB_USER \
|
||||
# --mount=type=secret,id=DB_NAME \
|
||||
# --mount=type=secret,id=DB_HOST \
|
||||
# --mount=type=secret,id=DB_PORT \
|
||||
# DB_PASSWORD=/run/secrets/DB_PASSWORD \
|
||||
# DB_USER=$(cat /run/secrets/DB_USER) \
|
||||
# DB_NAME=$(cat /run/secrets/DB_NAME) \
|
||||
# DB_HOST=$(cat /run/secrets/DB_HOST) \
|
||||
# DB_PORT=$(cat /run/secrets/DB_PORT)
|
||||
RUN --mount=type=secret,id=DB_PASSWORD \
|
||||
--mount=type=secret,id=DB_USER \
|
||||
--mount=type=secret,id=DB_NAME \
|
||||
--mount=type=secret,id=DB_HOST \
|
||||
--mount=type=secret,id=DB_PORT \
|
||||
DB_PASSWORD=/run/secrets/DB_PASSWORD \
|
||||
DB_USER=$(cat /run/secrets/DB_USER) \
|
||||
DB_NAME=$(cat /run/secrets/DB_NAME) \
|
||||
DB_HOST=$(cat /run/secrets/DB_HOST) \
|
||||
DB_PORT=$(cat /run/secrets/DB_PORT)
|
||||
|
||||
# RUN --mount=type=secret,id=secret-key,target=secrets.json
|
||||
|
||||
@@ -41,8 +41,6 @@ USER appuser
|
||||
WORKDIR /app
|
||||
|
||||
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
|
||||
|
||||
# Set up environment variables for production
|
||||
|
||||
Reference in New Issue
Block a user