2021-06-29 00:27:27 +02:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
2021-07-11 16:23:13 +02:00
|
|
|
FROM python:alpine
|
2021-06-29 00:27:27 +02:00
|
|
|
|
|
|
|
ENV TZ=Europe/Berlin
|
2021-07-10 09:08:58 +02:00
|
|
|
ENV UNBUFFERED=1
|
2021-06-29 00:27:27 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
VOLUME /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2021-06-29 14:26:04 +02:00
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone; \
|
2021-07-11 16:23:13 +02:00
|
|
|
apk --no-cache update && apk add --no-cache --virtual .build-deps \
|
|
|
|
gcc \
|
|
|
|
cargo \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
2021-07-14 20:30:06 +02:00
|
|
|
olm-dev \
|
2021-07-11 16:23:13 +02:00
|
|
|
zlib-dev \
|
|
|
|
jpeg-dev ; \
|
|
|
|
apk add --no-cache ffmpeg speex; \
|
|
|
|
pip install --no-cache-dir upgrade pip; \
|
|
|
|
pip install --no-cache-dir -r requirements.txt ; \
|
|
|
|
apk del --no-cache .build-deps;
|
2021-06-29 00:27:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-10 09:08:58 +02:00
|
|
|
ENTRYPOINT ["python3", "-u", "fritzab2matrix.py "]
|