mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-20 05:49:14 +00:00
Optimize Dockerfile for Image Size
This commit is contained in:
parent
6001e04b5b
commit
9e53f7f9cd
1 changed files with 4 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
||||||
FROM rust:latest
|
FROM rust:latest as builder
|
||||||
|
|
||||||
WORKDIR /usr/src/libreddit
|
WORKDIR /usr/src/libreddit
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo install --path .
|
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"]
|
CMD ["libreddit"]
|
Loading…
Add table
Reference in a new issue