Skip to content

Commit 8040930

Browse files
fix docker
1 parent 6edf941 commit 8040930

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

exec.Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
# ---- build ----
2-
FROM rust:1.78-slim AS build
1+
# exec.Dockerfile
2+
FROM rust:1.75 AS build
33
WORKDIR /app
4-
COPY Cargo.toml .
5-
COPY tundra/Cargo.toml tundra/Cargo.toml
6-
COPY executor/Cargo.toml executor/Cargo.toml
7-
RUN cargo fetch
84
COPY . .
5+
RUN cargo fetch
96
RUN cargo build --release -p executor
107

11-
# ---- runtime ----
12-
FROM gcr.io/distroless/cc
8+
# ──────────────────────────────────────────────────────────
9+
FROM debian:bookworm-slim
10+
WORKDIR /app
1311
COPY --from=build /app/target/release/executor /usr/local/bin/executor
1412
EXPOSE 8080
15-
ENTRYPOINT ["/usr/local/bin/executor"]
13+
CMD ["executor"]

0 commit comments

Comments
 (0)