Skip to content

Commit 3caad59

Browse files
committed
Update dockerfile
1 parent ed0de66 commit 3caad59

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/labrinth-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
id: docker_build
4242
uses: docker/build-push-action@v2
4343
with:
44-
context: ./apps/labrinth
44+
file: ./apps/labrinth/Dockerfile
4545
push: ${{ github.event_name != 'pull_request' }}
4646
tags: ${{ steps.docker_meta.outputs.tags }}
4747
labels: ${{ steps.docker_meta.outputs.labels }}

apps/labrinth/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ENV PKG_CONFIG_ALLOW_CROSS=1
33

44
WORKDIR /usr/src/labrinth
55
COPY . .
6-
RUN cargo build --release
6+
RUN cargo build --release --package labrinth
77

88

99
FROM debian:bookworm-slim
@@ -20,8 +20,8 @@ RUN apt-get update \
2020
RUN update-ca-certificates
2121

2222
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
23-
COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/
24-
COPY --from=build /usr/src/labrinth/assets /labrinth/assets
23+
COPY --from=build /usr/src/labrinth/apps/labrinth/migrations/* /labrinth/migrations/
24+
COPY --from=build /usr/src/labrinth/apps/labrinth/assets /labrinth/assets
2525
WORKDIR /labrinth
2626

27-
CMD /labrinth/labrinth
27+
CMD /labrinth/labrinth

0 commit comments

Comments
 (0)