Reduce the size of the docker images (#238)

This commit is contained in:
Chevdor
2020-03-30 10:59:26 +02:00
committed by GitHub
parent 85b7809533
commit 3dc21d1123
2 changed files with 9 additions and 6 deletions
+8 -5
View File
@@ -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" ]