1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Try statically linking OpenSSL for Docker.

This commit is contained in:
Martin Hoffmann
2019-08-16 12:04:19 +02:00
parent 28ad8214e5
commit 423e751997

View File

@ -2,13 +2,14 @@
FROM rust:1.36.0-stretch as build
RUN apt-get -yq update && \
apt-get -yq install musl-tools libssl-dev
apt-get -yq install musl-tools
RUN rustup target add x86_64-unknown-linux-musl
WORKDIR /tmp/routinator
COPY . .
ENV OPENSSL_STATIC=1 PKG_CONFIG_ALLOW_CROSS=1
RUN cargo build --target=x86_64-unknown-linux-musl --release --locked
# -- stage 2: create alpine-based container with the static routinator