-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
27 lines (20 loc) · 695 Bytes
/
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
FROM python:3.10-alpine
# COPY . /
# RUN python -m pip install -r requirements.txt
# CMD echo "Hello world"
COPY requirements.txt requirements.txt
RUN echo "**** install system packages ****" \
&& apk update \
&& apk upgrade \
&& apk add tini ncdu \
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt
# && apt-get --purge autoremove gcc g++ libxml2-dev libxslt-dev libz-dev -y \
# && apt-get clean \
# && apt-get update \
# && apt-get check \
# && apt-get -f install \
# && apt-get autoclean \
# && rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
COPY . /
VOLUME /config
ENTRYPOINT ["/sbin/tini", "-s", "python3", "media-scripts.py", "--"]