lavina/dist/alpine3.18.Dockerfile

12 lines
425 B
Docker
Raw Permalink Normal View History

2023-09-15 15:03:06 +00:00
FROM rust:1.72.0-alpine3.18@sha256:2f5592c561cef195c9fa4462633a674458dc375fc0ba4b80e7efe4c3c8e68403 as bld
RUN apk add --no-cache musl-dev
COPY . .
RUN cargo build --release
FROM alpine:3.18@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
COPY --from=bld target/release/lavina /usr/bin/lavina
VOLUME ["/etc/lavina/", "/var/lib/lavina/"]
2023-09-22 15:24:36 +00:00
ENTRYPOINT ["lavina", "--config", "/etc/lavina/config.toml"]