Files
send/pkg/Dockerfile
T

21 lines
686 B
Docker
Raw Normal View History

2026-06-09 14:06:56 +00:00
FROM docker.io/dunglas/frankenphp:1-php8.5-alpine@sha256:7d92f9b2674d6a07a73e39ea771530e3bb2386a88c3b37b6eff00d3fbc02655e
2025-12-18 10:09:38 -05:00
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
WORKDIR "/app"
# Copy Caddy configuration
COPY --chown=www-data:www-data pkg/files/Caddyfile /etc/frankenphp/Caddyfile
# TODO: necessaire ?
#RUN chown www-data:www-data /data/caddy && \
# chmod 2770 /data/caddy
# Copy application files
COPY --chown=www-data:www-data "../public" "/app"
# TODO: php.ini
# Caddyfile imports this file via basic_auth (it can be empty, file just must exist)
RUN touch /etc/frankenphp/htpasswd && \
chown www-data:www-data /etc/frankenphp/htpasswd
2025-12-18 10:09:38 -05:00
USER www-data