Skip to content

Commit c85d8ff

Browse files
committed
Dockerfile adjusted for smaller container size.
1 parent 7f2d826 commit c85d8ff

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
FROM rust:1.77
2-
3-
COPY ./ ./
1+
FROM rust:1.77 AS builder
2+
WORKDIR app
3+
COPY . .
44
RUN cargo build --release
5-
CMD ["./target/release/deoptimizer"]
5+
6+
FROM debian:bookworm-slim AS runtime
7+
WORKDIR app
8+
COPY --from=builder /app/target/release/deoptimizer /usr/local/bin
9+
ENTRYPOINT ["/usr/local/bin/deoptimizer"]

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[![Build][workflow-img]][workflow]
1010
[![Issues][issues-img]][issues]
1111
[![Crates][crates-img]][crates]
12-
![Docker Pulls][docker-pulls]
1312
[![License: MIT][license-img]][license]
1413
</div>
1514

@@ -21,7 +20,6 @@
2120
[downloads-img]: https://img.shields.io/github/downloads/EgeBalci/deoptimizer/total?logo=github
2221
[issues]: https://github.com/EgeBalci/deoptimizer/issues
2322
[issues-img]: https://img.shields.io/github/issues/EgeBalci/deoptimizer?color=red
24-
[docker-pulls]: https://img.shields.io/docker/pulls/EgeBalci/EgeBalci?logo=docker&label=docker%20pulls
2523
[license]: https://raw.githubusercontent.com/EgeBalci/deoptimizer/master/LICENSE
2624
[license-img]: https://img.shields.io/github/license/EgeBalci/deoptimizer.svg
2725
[google-cloud-shell]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/EgeBalci/deoptimizer&tutorial=README.md

0 commit comments

Comments
 (0)