forked from dtcooper/raspotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (39 loc) · 1.29 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM debian:stable
ENV INSIDE_DOCKER_CONTAINER 1
RUN dpkg --add-architecture arm64 \
&& dpkg --add-architecture armhf
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends \
build-essential \
libasound2-dev \
libpulse-dev \
crossbuild-essential-arm64 \
libasound2-dev:arm64 \
libpulse-dev:arm64 \
crossbuild-essential-armhf \
libasound2-dev:armhf \
libpulse-dev:armhf \
curl \
git \
pandoc \
pkg-config \
python3-pip \
python3-setuptools \
python3-wheel \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install \
jinja2-cli \
unidecode
ENV PKG_CONFIG_ALLOW_CROSS 1
ENV PKG_CONFIG_PATH "/usr/lib/arm-linux-gnueabihf/pkgconfig"
RUN mkdir /build
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH "/root/.cargo/bin/:$PATH"
ENV CARGO_TARGET_DIR "/build"
ENV CARGO_HOME "/build/cache"
RUN rustup target add aarch64-unknown-linux-gnu \
&& rustup target add armv7-unknown-linux-gnueabihf
RUN mkdir /.cargo
RUN echo '[target.aarch64-unknown-linux-gnu]\nlinker = "aarch64-linux-gnu-gcc"' > /.cargo/config \
&& echo '[target.armv7-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' >> /.cargo/config