Commit 071850f3 authored by Tobias Munk's avatar Tobias Munk

added cron to nginx image

parent 4ef0b44b
Pipeline #17443 passed with stages
in 2 minutes and 6 seconds
FROM dmstr/php-yii2:latest
# Install Forego
# TODO: use RUN curl ... for better build caching
ADD https://github.com/jwilder/forego/releases/download/v0.16.1/forego /usr/local/bin/forego
RUN curl -L -o /usr/local/bin/forego https://github.com/jwilder/forego/releases/download/v0.16.1/forego
RUN chmod u+x /usr/local/bin/forego
# Install nginx
RUN apt-get update \
&& apt-get install -y --force-yes \
nginx-full \
cron \
--no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
......@@ -18,7 +18,8 @@ COPY image-files/ /
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& ln -sf /usr/sbin/cron /usr/sbin/crond
CMD ["forego", "start", "-r", "-f", "/root/Procfile"]
......
nginx: nginx -g 'daemon off;'
phpfpm: docker-run.sh
cron: crond -f
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment