This repository has been archived on 2021-10-25. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-09-05 09:59:16 +02:00
|
|
|
FROM rust:1.54
|
|
|
|
|
2021-09-05 11:19:18 +02:00
|
|
|
ENV PREFIX="/usr/src/out/prefix" \
|
|
|
|
CC="musl-gcc -fPIC -pie -static" \
|
|
|
|
LD_LIBRARY_PATH="$PREFIX" \
|
|
|
|
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" \
|
|
|
|
PATH="/usr/local/bin:/root/.cargo/bin:$PATH"
|
|
|
|
|
2021-09-05 09:59:16 +02:00
|
|
|
RUN apt update && \
|
|
|
|
apt install -y --no-install-recommends \
|
|
|
|
musl-dev \
|
|
|
|
musl-tools \
|
|
|
|
libpq-dev \
|
|
|
|
libssl-dev && \
|
2021-09-05 11:19:18 +02:00
|
|
|
rustup target add x86_64-unknown-linux-musl && \
|
|
|
|
mkdir "$PREFIX" && \
|
|
|
|
echo "$PREFIX/lib" >> /etc/ld-musl-x86_64.path
|
2021-09-05 09:59:16 +02:00
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|