httplz-docker/Dockerfile

13 lines
321 B
Docker
Raw Normal View History

2023-04-07 17:46:55 +02:00
FROM rust:alpine as builder
# openssl not found -> openssl and openssl-dev
# #include <stdlib.h> -> musl-dev
RUN apk add openssl openssl-dev musl-dev
# --root dir: Directory to install packages into.
RUN cargo install --root /build --bin httplz https
FROM alpine
COPY --from=builder /build/bin/httplz /bin/httplz