2024-02-07 15:21:14 +00:00
|
|
|
FROM php:nginx
|
2021-11-12 16:43:41 +00:00
|
|
|
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/benzine-framework/docker" \
|
|
|
|
org.opencontainers.image.source="https://github.com/benzine-framework/docker"
|
2023-03-01 17:35:35 +00:00
|
|
|
# hadolint ignore=DL3008
|
2023-03-01 17:32:51 +00:00
|
|
|
RUN apt-get update -qq && \
|
2023-03-01 17:35:35 +00:00
|
|
|
apt-get install -yqq --no-install-recommends \
|
2023-03-01 17:32:51 +00:00
|
|
|
php8.1-mailparse \
|
2023-03-01 17:35:35 +00:00
|
|
|
cpulimit \
|
|
|
|
&& \
|
|
|
|
apt-get autoremove -yqq && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/lib/dpkg/status.old /var/cache/debconf/templates.dat /var/log/dpkg.log /var/log/lastlog /var/log/apt/*.log
|
2023-03-02 16:13:59 +00:00
|
|
|
COPY nginx.runit /etc/service/nginx/run
|
2021-11-12 16:43:41 +00:00
|
|
|
COPY laravel.runit /etc/service/laravel/run
|
2023-03-01 17:32:51 +00:00
|
|
|
COPY laravel-horizon.runit /etc/service/horizon/run
|
|
|
|
COPY laravel-horizon.finish /etc/service/horizon/finish
|
|
|
|
COPY laravel-scheduler.runit /etc/service/scheduler/run
|
|
|
|
COPY migrate.runit /etc/service/migrate/run
|
|
|
|
COPY wait-for-mysql /usr/bin/wait-for-mysql
|
2024-02-07 15:21:14 +00:00
|
|
|
RUN chmod +x /etc/service/*/run /etc/service/*/finish /usr/bin/wait-for-mysql
|
|
|
|
HEALTHCHECK --interval=10s --timeout=3s \
|
|
|
|
CMD curl -f http://localhost/ || exit 1
|
|
|
|
|
|
|
|
RUN adduser laravel
|
|
|
|
USER laravel
|