18 lines
310 B
Docker
18 lines
310 B
Docker
FROM rust:buster as builder
|
|
|
|
RUN rustup default nightly
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM archlinux
|
|
|
|
RUN pacman -Syu --noconfirm openssl-1.1 tar xz zstd curl base-devel git rsync
|
|
|
|
COPY --from=builder /app/target/release/pacco /pacco
|
|
|
|
WORKDIR /
|
|
|
|
CMD ["/pacco", "serve", "/config.toml"]
|