Skip to content

Commit 156b200

Browse files
Fix agent artifact Docker build context
1 parent 46dfc01 commit 156b200

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 .

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

rust/iscy-backend/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
FROM 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

810
RUN cargo build --release --locked
911

@@ -16,8 +18,8 @@ RUN apt-get update \
1618

1719
WORKDIR /app
1820
RUN 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

2224
ENV RUST_BACKEND_BIND=0.0.0.0:9000
2325
EXPOSE 9000

0 commit comments

Comments
 (0)