diff options
author | fx <[email protected]> | 2023-10-15 02:26:29 +0200 |
---|---|---|
committer | fx <[email protected]> | 2023-10-15 02:26:29 +0200 |
commit | 0948f75248a5daf8229ce1f40d1b3ec8d9aecbac (patch) | |
tree | 753359f0a74c44f31e6fa7e9ab5d7d404b8092b9 /Dockerfile.build | |
parent | d109f789b1cb75fc144a203628694dfb7ed300cb (diff) | |
download | webol-0948f75248a5daf8229ce1f40d1b3ec8d9aecbac.tar webol-0948f75248a5daf8229ce1f40d1b3ec8d9aecbac.tar.gz webol-0948f75248a5daf8229ce1f40d1b3ec8d9aecbac.zip |
test w/ cargo chef + arm64
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"] | ||