Files
oficial/CLI.Dockerfile

20 lines
569 B
Docker
Raw Normal View History

2024-02-10 10:37:45 -03:00
FROM php:8.2-cli
2023-11-25 00:56:18 -03:00
2024-02-10 10:37:45 -03:00
ENV TZ "${TZ}"
ENV APP_NAME "${APP_NAME}"
ENV API_URL "${API_URL}"
2023-11-25 01:14:28 -03:00
2024-02-10 10:37:45 -03:00
RUN apt-get update && apt-get install -y --no-install-recommends cron rsyslog nano && rm -r /var/lib/apt/lists/*
2023-11-25 00:56:18 -03:00
2023-11-29 23:02:12 -03:00
RUN pecl install xdebug-3.2.2 \
2024-02-10 10:37:45 -03:00
&& docker-php-ext-enable xdebug \
&& echo "#/bin/bash\nprintenv >> /etc/environment\ncron -f -L 11" > /root/entrypoint && chmod a+x /root/entrypoint
2023-11-25 00:56:18 -03:00
COPY ./php-errors.ini /usr/local/etc/php/conf.d/docker-php-errors.ini
2023-11-29 23:07:50 -03:00
WORKDIR /code/bin
2023-11-25 00:56:18 -03:00
2024-02-10 10:37:45 -03:00
COPY --chmod=644 ./cli/crontab /var/spool/cron/crontabs/root
2023-11-25 00:56:18 -03:00
2024-02-10 10:37:45 -03:00
CMD [ "/root/entrypoint" ]