Fixed docker issue

This commit is contained in:
2025-04-13 13:54:11 -04:00
parent 042fae7a8f
commit 6b12421e7c
4 changed files with 23 additions and 14 deletions

View File

@@ -35,7 +35,8 @@ RUN --mount=type=ssh mkdir src && \
COPY src ./src
# If you have other directories like `templates` or `static`, copy them too
COPY .env ./.env
COPY auth_db.env ./auth_db.env
# COPY auth_db.env.docker ./auth_db.env
COPY auth_db.env.docker ./auth_db.env
COPY migrations ./migrations
# << --- SSH MOUNT ADDED HERE --- >>
@@ -62,6 +63,8 @@ COPY --from=builder /usr/src/app/target/release/icarus_auth .
# Copy other necessary files like .env (if used for runtime config) or static assets
# It's generally better to configure via environment variables in Docker though
COPY --from=builder /usr/src/app/.env .
# COPY --from=builder /usr/src/app/auth_db.env.docker auth_db.env
# COPY --from=builder /usr/src/app/auth_db.env.docker ./auth_db.env
COPY --from=builder /usr/src/app/auth_db.env .
COPY --from=builder /usr/src/app/migrations ./migrations