Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Add assets and migrations to dockerfile (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically authored Jan 12, 2024
1 parent 7b00003 commit d1a09d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ENV PKG_CONFIG_ALLOW_CROSS=1

WORKDIR /usr/src/labrinth
COPY . .
ARG SQLX_OFFLINE=true
RUN cargo build --release


Expand All @@ -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

0 comments on commit d1a09d0

Please sign in to comment.