From df4bae1ca323d8dfcd676226540bdf11a643d400 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 20 Apr 2025 15:16:40 -0400 Subject: [PATCH] Docker fixes --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 97a8c0d..a57ae02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,7 @@ 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 migrations ./migrations # << --- SSH MOUNT ADDED HERE --- >> # Build *only* dependencies to leverage Docker cache @@ -60,6 +61,7 @@ COPY --from=builder /usr/src/app/target/release/icarus . # 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/migrations . # Expose the port your Axum app listens on (e.g., 3000 or 8000) EXPOSE 3000