forked from lardbit/nefarious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-armv7
39 lines (31 loc) · 951 Bytes
/
Dockerfile-armv7
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
# accept an image tag build argument to define a "copy_from_app_image" FROM image to copy the prebuilt app from
ARG copy_from_tag=latest
FROM lardbit/nefarious:${copy_from_tag} as copy_from_app_image
# base image
FROM resin/armv7hf-ubuntu
WORKDIR /app
# copy pre-built app from "copy_from_app_image" image
COPY --from=copy_from_app_image /app .
RUN ["cross-build-start"]
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3.8 \
python3.8-venv \
python3.8-dev \
python3.8-gdbm \
python3-venv \
git \
&& python3.8 -m venv /env \
&& /env/bin/pip install -r requirements.txt \
&& apt-get remove -y \
build-essential \
python3.8-venv \
python3.8-dev \
python3-venv \
git \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& true
RUN ["cross-build-end"]
EXPOSE 80
ENTRYPOINT ["/app/docker-entrypoint.sh"]