mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-07-24 10:05:42 +00:00
Reduce the size of the docker images (#238)
This commit is contained in:
+8
-5
@@ -1,11 +1,14 @@
|
||||
FROM rust
|
||||
|
||||
WORKDIR /app
|
||||
FROM rust as builder
|
||||
|
||||
WORKDIR /build
|
||||
COPY ./backend .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
#####################################
|
||||
FROM phusion/baseimage:0.11
|
||||
|
||||
COPY --from=builder /build/target/release/telemetry /usr/local/bin
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT [ "./target/release/telemetry" ]
|
||||
ENTRYPOINT [ "telemetry" ]
|
||||
|
||||
Reference in New Issue
Block a user