Update dockerfile

This commit is contained in:
Jai A
2025-01-31 13:27:29 -08:00
parent ed0de667fb
commit 3caad59bb4
2 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./apps/labrinth
file: ./apps/labrinth/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}

View File

@@ -3,7 +3,7 @@ ENV PKG_CONFIG_ALLOW_CROSS=1
WORKDIR /usr/src/labrinth
COPY . .
RUN cargo build --release
RUN cargo build --release --package labrinth
FROM debian:bookworm-slim
@@ -20,8 +20,8 @@ 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
COPY --from=build /usr/src/labrinth/apps/labrinth/migrations/* /labrinth/migrations/
COPY --from=build /usr/src/labrinth/apps/labrinth/assets /labrinth/assets
WORKDIR /labrinth
CMD /labrinth/labrinth
CMD /labrinth/labrinth