-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_armv7l
43 lines (36 loc) · 976 Bytes
/
Dockerfile_armv7l
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
FROM arm32v6/alpine:3.8
WORKDIR /usr/src/app
RUN apk --no-cache add \
python3 \
libstdc++ \
lapack \
openssl \
libffi \
libxml2 \
libxslt \
nano \
&& \
pip3 install --no-cache-dir --upgrade pip setuptools && \
apk add --no-cache --virtual .build-deps \
build-base \
python3-dev \
lapack-dev \
gfortran \
g++ \
make \
openssl-dev \
libffi-dev \
libxml2-dev \
libxslt-dev \
&& \
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
rm -fr /root/.cache && \
rm /usr/include/xlocale.h
COPY ./requirements.txt /usr/src/app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN apk del .build-deps
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY . .
ENV PYTHONPATH `pwd`/..
CMD ["python3", "SD_Client", "-l", "DEBUG"]