mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-03 04:57:38 +03:00
9 lines
No EOL
308 B
Docker
9 lines
No EOL
308 B
Docker
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"] |