-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
34 lines (26 loc) · 880 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ghcr.io/shyim/wolfi-php/base:latest
ARG PHP_VERSION=8.2
RUN <<EOF
set -eo pipefail
apk add --no-cache \
curl \
frankenphp-${PHP_VERSION}
EOF
COPY Caddyfile /etc/caddy/Caddyfile
# See https://caddyserver.com/docs/conventions#file-locations for details
ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data
EXPOSE 80
EXPOSE 443
EXPOSE 443/udp
EXPOSE 2019
LABEL org.opencontainers.image.title=FrankenPHP
LABEL org.opencontainers.image.description="The modern PHP app server"
LABEL org.opencontainers.image.url=https://frankenphp.dev
LABEL org.opencontainers.image.source=https://github.com/shyim/wolfi-php
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.vendor="Shyim"
WORKDIR /app
ENTRYPOINT [ "/usr/bin/frankenphp", "run" ]
CMD [ "--config", "/etc/caddy/Caddyfile" ]
HEALTHCHECK CMD curl -f http://localhost:2019/metrics || exit 1