Create a monica app with docker-compose
This commit is contained in:
29
monica/Dockerfile
Normal file
29
monica/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM monica:fpm
|
||||
|
||||
# Add wait-for-it
|
||||
#ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /bin/wait-for-it.sh
|
||||
#RUN chmod +x /bin/wait-for-it.sh
|
||||
|
||||
# Add S6 supervisor (for graceful stop)
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.1.1/s6-overlay-amd64.tar.gz /tmp/
|
||||
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin
|
||||
RUN chmod 755 /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
CMD ["/init"]
|
||||
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
# Copy PHP-FPM service script
|
||||
COPY start-fpm.sh /etc/services.d/php_fpm/run
|
||||
RUN chmod 755 /etc/services.d/php_fpm/run
|
||||
|
||||
# Copy cron service script
|
||||
COPY start-cron.sh /etc/services.d/cron/run
|
||||
RUN chmod 755 /etc/services.d/cron/run
|
||||
|
||||
# Copy queue service script
|
||||
COPY start-queue.sh /etc/services.d/queue/run
|
||||
RUN chmod 755 /etc/services.d/queue/run
|
||||
Reference in New Issue
Block a user