28 lines
511 B
Docker
28 lines
511 B
Docker
FROM alpine:edge
|
|
|
|
# Install build dependencies
|
|
# TODO: trim dependencies?
|
|
RUN apk update && apk add \
|
|
build-base \
|
|
abuild \
|
|
git \
|
|
rust \
|
|
cargo-auditable \
|
|
pkgconfig \
|
|
protobuf-dev \
|
|
protobuf-dev \
|
|
libmnl libmnl-dev \
|
|
libnftnl libnftnl-dev \
|
|
dbus dbus-dev \
|
|
fontconfig-dev
|
|
|
|
# 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
|
|
|