Reduce the size of the docker images (#238)

This commit is contained in:
Chevdor authored and GitHub committed 2020-03-30 10:59:26 +02:00
1 parent 85b7809533
commit 3dc21d1123
2 files changed
+9 -6

No files matched your search

+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" ]
+1 -1
View File
@@ -8,4 +8,4 @@ COPY ./scripts ./scripts
COPY ./packages ./packages
COPY ./package.json ./yarn.lock ./tsconfig.json ./
RUN yarn
RUN yarn && yarn cache clean