From d1a09d0b951a935260e23c1f222f71bf305cad1d Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:00:37 -0500 Subject: [PATCH] Add assets and migrations to dockerfile (#851) --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8a2dfd5c..a9e6c875 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ ENV PKG_CONFIG_ALLOW_CROSS=1 WORKDIR /usr/src/labrinth COPY . . +ARG SQLX_OFFLINE=true RUN cargo build --release @@ -16,6 +17,9 @@ RUN apt-get update \ RUN update-ca-certificates COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth +COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/ +COPY --from=build /usr/src/labrinth/assets /labrinth/assets + WORKDIR /labrinth CMD /labrinth/labrinth \ No newline at end of file