-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (25 loc) · 925 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
28
29
30
31
32
33
FROM python:3.12-slim
SHELL ["/bin/bash", "-c"]
WORKDIR /usr/src/app
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY . .
ARG SEVENZIP_VERSION="2409"
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install --no-install-recommends apt-utils \
&& apt-get -y install --no-install-recommends cron curl wget build-essential manpages-dev xz-utils nano jq gawk\
&& ./get7Zip.sh ${SEVENZIP_VERSION} \
&& source $VIRTUAL_ENV/bin/activate \
&& pip install --no-cache-dir -r requirements_submodule.txt \
&& which cron \
&& rm -rf /etc/cron.*/* \
&& crontab crontab1.file \
&& apt-get -y purge wget build-essential manpages-dev xz-utils \
&& apt-get -y --purge autoremove \
&& apt-get clean \
&& apt-get autoclean
VOLUME [ "/usr/src/app/dataStore", "/usr/src/app/data" ]
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
CMD ["cron","-f", "-L", "15"]