[FEAT] Run in a Docker container

This commit is contained in:
2023-10-29 01:54:15 +01:00
parent 072740a2b7
commit a01611e193
5 changed files with 38 additions and 3 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM php:latest
RUN apt-get update && apt-get install cron -y
COPY autosave.php /srv/autosave.php
COPY autosave.cron /srv/autosave.cron
COPY entrypoint.sh /srv/entrypoint.sh
RUN chmod 0600 /srv/autosave.cron
RUN chmod 0700 /srv/entrypoint.sh
RUN crontab /srv/autosave.cron
WORKDIR /srv
RUN docker-php-ext-install bcmath
RUN printenv | grep -v "no_proxy" >> /etc/environment
ENTRYPOINT /srv/entrypoint.sh