Updating docker and switching to env files

This commit is contained in:
2025-04-13 12:30:49 -04:00
parent 5c4cdb8a72
commit 9a6a190f36
2 changed files with 15 additions and 13 deletions

View File

@@ -34,9 +34,8 @@ RUN --mount=type=ssh mkdir src && \
# Copy the actual source code
COPY src ./src
# If you have other directories like `templates` or `static`, copy them too
# COPY templates ./templates
# COPY static ./static
COPY .env ./.env
COPY auth_db.env ./auth_db.env
COPY migrations ./migrations
# << --- SSH MOUNT ADDED HERE --- >>
@@ -63,9 +62,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 .
COPY --from=builder /usr/src/app/migrations ./migrations
# COPY --from=builder /usr/src/app/templates ./templates
# COPY --from=builder /usr/src/app/static ./static
# Expose the port your Axum app listens on (e.g., 3000 or 8000)
EXPOSE 3000