From 6c8fd8e3d3906a5fcbb94a9f41d9482cf47dd547 Mon Sep 17 00:00:00 2001 From: Tilo-K Date: Fri, 26 Dec 2025 01:32:23 +0100 Subject: [PATCH] feat: add dockerfile --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7c35b80..9f64afb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,10 +23,13 @@ WORKDIR /app COPY Cargo.toml Cargo.lock ./ COPY src ./src COPY scp_core ./scp_core +COPY .sqlx ./.sqlx +COPY migrations ./migrations # If you have a workspace / extra crates, copy them too (adjust): # COPY crates ./crates +ENV SQLX_OFFLINE=true RUN cargo build --release # ---- Runtime image ---- @@ -38,12 +41,12 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* # Adjust binary name -COPY --from=backend-build /app/target/release/myapp /app/myapp - +COPY --from=backend-build /app/target/release/cupcontrol /app/cupcontrol +COPY --from=backend-build /app/migrations /app/migrations # Match your Actix static path: ./frontend/dist COPY --from=frontend-build /app/frontend/dist /app/frontend/dist ENV RUST_LOG=info ENV HOST=0.0.0.0 EXPOSE 8080 -CMD ["/app/myapp"] +CMD ["/app/cupcontrol"]