Files
mullvad-vpn-alpine/Dockerfile
2026-03-30 10:20:45 +02:00

25 lines
465 B
Docker

FROM alpine:edge
# Install build dependencies
# TODO: trim dependencies?
RUN apk update && apk add \
build-base \
abuild \
rustup \
musl-dev \
pkgconfig \
protobuf-dev \
fontconfig-dev
RUN rustup-init -y --default-toolchain stable
# Set pkg-config to use static libraries
ENV PKG_CONFIG_ALLOW_STATIC=1
ENV PKG_CONFIG_ALL_STATIC=1
# Slint/winit does not work when statically compiled
ENV RUSTFLAGS="-C target-feature=-crt-static"
WORKDIR /build