mangadex-home-rs/Dockerfile

11 lines
312 B
Text
Raw Normal View History

2021-07-18 18:33:56 -07:00
# syntax=docker/dockerfile:1
2021-07-18 18:27:29 -07:00
FROM rust:alpine as builder
COPY . .
RUN apk add --no-cache file make musl-dev \
&& cargo install --path . \
&& strip /usr/local/cargo/bin/mangadex-home
FROM alpine:latest
COPY --from=builder /usr/local/cargo/bin/mangadex-home /usr/local/bin/mangadex-home
CMD ["mangadex-home"]