-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathDockerfile-musl
More file actions
34 lines (31 loc) · 826 Bytes
/
Dockerfile-musl
File metadata and controls
34 lines (31 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ekidd/rust-musl-builder
RUN sudo apt update && sudo apt install -y \
libglib2.0-dev \
libpango1.0-dev \
libgtk-3-dev \
libsoup2.4-dev \
libwebkit2gtk-4.0-dev \
libsystemd-dev \
libmount-dev \
libselinux1-dev \
libffi-dev \
autoconf \
automake \
autopoint \
libtool \
m4 \
po4a
# Compile liblzma
RUN cd /home/rust/libs && \
git clone https://git.tukaani.org/xz.git && \
cd xz && \
git checkout v5.2.5 && \
CC=musl-gcc ./autogen.sh && \
CC=musl-gcc ./configure --disable-shared && \
cd src/liblzma/ && \
make && \
sudo make install && \
cd ../../../ && \
rm -rf xz
# Build our application
ENTRYPOINT ["cargo", "build", "--target", "x86_64-unknown-linux-musl"]