File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,4 +128,4 @@ jobs:
128128 docker compose --env-file .env -f docker-compose.yml -f docker-compose.prod.yml -f docker-compose.llm.yml config
129129 - name : Build hardened application image
130130 run : |
131- docker build --file rust/iscy-backend/Dockerfile rust/iscy-backend
131+ docker build --file rust/iscy-backend/Dockerfile .
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ services:
1616
1717 app :
1818 build :
19- context : ./rust/iscy-backend
19+ context : .
20+ dockerfile : rust/iscy-backend/Dockerfile
2021 restart : unless-stopped
2122 depends_on :
2223 db :
Original file line number Diff line number Diff line change 11FROM rust:1.88-bookworm AS builder
2- WORKDIR /build
2+ WORKDIR /build/rust/iscy-backend
33
4- COPY Cargo.toml Cargo.lock ./
5- COPY src ./src
6- COPY seeds ./seeds
4+ COPY rust/iscy-backend/Cargo.toml rust/iscy-backend/Cargo.lock ./
5+ COPY rust/iscy-backend/src ./src
6+ COPY rust/iscy-backend/seeds ./seeds
7+ COPY deploy /build/deploy
8+ COPY flake.lock /build/flake.lock
79
810RUN cargo build --release --locked
911
@@ -16,8 +18,8 @@ RUN apt-get update \
1618
1719WORKDIR /app
1820RUN install -d -o iscy -g iscy /app/media
19- COPY --from=builder /build/target/release/iscy-backend /usr/local/bin/iscy-backend
20- COPY --from=builder /build/target/release/iscy-canary /usr/local/bin/iscy-canary
21+ COPY --from=builder /build/rust/iscy-backend/ target/release/iscy-backend /usr/local/bin/iscy-backend
22+ COPY --from=builder /build/rust/iscy-backend/ target/release/iscy-canary /usr/local/bin/iscy-canary
2123
2224ENV RUST_BACKEND_BIND=0.0.0.0:9000
2325EXPOSE 9000
You can’t perform that action at this time.
0 commit comments