aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-27 21:18:34 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-27 21:18:34 +0100
commitdd3f431d2f20409ccb490241e70687a5f5c7c79c (patch)
tree5c3f66ca9a0021b03d5ceddeaa1b5e77503471e7 /Dockerfile
parentf0a4fd5c9b632633443f8a5bf4475cbf33fed8d5 (diff)
downloadboymoder.blog-master.tar.gz
boymoder.blog-master.zip
Added caching docker info with cronHEADmaster
Diffstat (limited to 'Dockerfile')
-rwxr-xr-xDockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index ec1b310..f81f901 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,9 +3,12 @@ MAINTAINER Eden Attenborough "eden.attenborough@outlook.com"
ENV TZ=Europe/London
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y
-RUN apt-get install -y python3-pip python3-dev build-essential clang libffi-dev libxml2-dev libxslt-dev libjpeg-dev zlib1g-dev
+RUN apt-get install -y python3-pip python3-dev build-essential clang libffi-dev libxml2-dev libxslt-dev libjpeg-dev zlib1g-dev tmux cron
COPY . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
-ENTRYPOINT ["python3"]
-CMD ["app.py", "--production"]
+
+RUN echo "*/30 * * * * root python3 /app/cache.py > /proc/1/fd/1 2>/proc/1/fd/2" > /etc/crontab
+
+ENTRYPOINT ["bash"]
+CMD ["entrypoint.sh"]