forked from home-assistant/wheels
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (37 loc) · 951 Bytes
/
Dockerfile
File metadata and controls
44 lines (37 loc) · 951 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
35
36
37
38
39
40
41
42
43
44
ARG BUILD_FROM
FROM ${BUILD_FROM}
ARG \
BUILD_ARCH \
CPYTHON_ABI \
PIP_EXTRA_INDEX_URL=https://wheels.home-assistant.io/musllinux-index/
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
COPY rootfs /
# Install requirements
RUN \
--mount=type=bind,source=.,target=/usr/src/builder/,rw \
apk upgrade --no-cache \
&& apk add --no-cache \
rsync \
openssh-client \
patchelf \
build-base \
cmake \
git \
linux-headers \
autoconf \
automake \
cargo \
libffi \
&& apk add --no-cache --virtual .build-dependencies \
libffi-dev \
&& pip3 install \
-r /usr/src/builder/requirements.txt \
-r /usr/src/builder/requirements_${CPYTHON_ABI}.txt \
/usr/src/builder/
# Set build environment information
ENV \
ARCH=${BUILD_ARCH} \
ABI=${CPYTHON_ABI}
# Runtime
WORKDIR /data
ENTRYPOINT [ "run-builder.sh" ]