diff options
Diffstat (limited to 'Dockerfile.build')
-rw-r--r-- | Dockerfile.build | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Dockerfile.build b/Dockerfile.build deleted file mode 100644 index 0158b8a..0000000 --- a/Dockerfile.build +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | FROM debian:bookworm AS deb_extractor | ||
2 | RUN cd /tmp && \ | ||
3 | apt-get update && apt-get download \ | ||
4 | libc6 && \ | ||
5 | mkdir /dpkg && \ | ||
6 | for deb in *.deb; do dpkg --extract $deb /dpkg || exit 10; done | ||
7 | |||
8 | FROM rust:1.73 as builder | ||
9 | WORKDIR /app | ||
10 | COPY . . | ||
11 | RUN cargo build --release | ||
12 | |||
13 | FROM gcr.io/distroless/cc | ||
14 | COPY --from=builder /app/target/release/webol / | ||
15 | COPY --from=deb_extractor /dpkg / | ||
16 | |||
17 | EXPOSE 7229 | ||
18 | ENTRYPOINT ["./webol"] | ||