diff options
author | FxQnLr <[email protected]> | 2024-02-12 16:00:45 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-12 16:00:45 +0100 |
commit | c663810817183c8f92a4279236ca84d271365088 (patch) | |
tree | 0c844cc883e5e474a9cdad30004108852f13f903 /Dockerfile | |
parent | da6367885d31698464e1bec122e3e673974427c6 (diff) | |
parent | 9139d76cb1cf462820b2ddfa80d9a8d55bb30996 (diff) | |
download | webol-c663810817183c8f92a4279236ca84d271365088.tar webol-c663810817183c8f92a4279236ca84d271365088.tar.gz webol-c663810817183c8f92a4279236ca84d271365088.zip |
Merge pull request #14 from FxQnLr/axum7
Axum7 & config changes
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 4 insertions, 11 deletions
@@ -5,22 +5,15 @@ RUN cd /tmp && \ | |||
5 | mkdir /dpkg && \ | 5 | mkdir /dpkg && \ |
6 | for deb in *.deb; do dpkg --extract $deb /dpkg || exit 10; done | 6 | for deb in *.deb; do dpkg --extract $deb /dpkg || exit 10; done |
7 | 7 | ||
8 | FROM lukemathwalker/cargo-chef:latest-rust-1.73.0 as chef | 8 | FROM rust:1.76 as builder |
9 | WORKDIR app | 9 | WORKDIR /app |
10 | |||
11 | FROM chef AS planner | ||
12 | COPY . . | 10 | COPY . . |
13 | RUN cargo chef prepare --recipe-path recipe.json | 11 | RUN cargo install --path . |
14 | 12 | ||
15 | FROM chef as builder | ||
16 | COPY --from=planner /app/recipe.json recipe.json | ||
17 | RUN cargo chef cook --release --recipe-path recipe.json | ||
18 | COPY . . | ||
19 | RUN cargo build --release | ||
20 | 13 | ||
21 | FROM gcr.io/distroless/cc | 14 | FROM gcr.io/distroless/cc |
22 | COPY --from=builder /app/target/release/webol / | 15 | COPY --from=builder /app/target/release/webol / |
23 | COPY --from=deb_extractor /dpkg / | 16 | COPY --from=deb_extractor /dpkg / |
24 | 17 | ||
25 | EXPOSE 7229 | 18 | EXPOSE 7229 |
26 | ENTRYPOINT ["./webol"] \ No newline at end of file | 19 | ENTRYPOINT ["./webol"] |