forked from lavina/lavina
12 lines
386 B
Docker
12 lines
386 B
Docker
|
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/"]
|
||
|
ENTRYPOINT ["lavina"]
|