1
0
mirror of https://github.com/spikecodes/libreddit synced 2025-01-18 05:41:45 +01:00

Optimize Dockerfile for Image Size

This commit is contained in:
spikecodes 2020-11-17 17:31:12 -08:00
parent 6001e04b5b
commit 9e53f7f9cd

View File

@ -1,8 +1,9 @@
FROM rust:latest
FROM rust:latest as builder
WORKDIR /usr/src/libreddit
COPY . .
RUN cargo install --path .
FROM debian:buster-slim
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
CMD ["libreddit"]