[FEAT] Run in a Docker container
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user