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:
@ -2,13 +2,14 @@
|
|||||||
FROM rust:1.36.0-stretch as build
|
FROM rust:1.36.0-stretch as build
|
||||||
|
|
||||||
RUN apt-get -yq update && \
|
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
|
RUN rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
||||||
WORKDIR /tmp/routinator
|
WORKDIR /tmp/routinator
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
ENV OPENSSL_STATIC=1 PKG_CONFIG_ALLOW_CROSS=1
|
||||||
RUN cargo build --target=x86_64-unknown-linux-musl --release --locked
|
RUN cargo build --target=x86_64-unknown-linux-musl --release --locked
|
||||||
|
|
||||||
# -- stage 2: create alpine-based container with the static routinator
|
# -- stage 2: create alpine-based container with the static routinator
|
||||||
|
Reference in New Issue
Block a user