This commit is contained in:
parent
33a63cf4aa
commit
1d936181e7
@ -22,6 +22,8 @@ LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
|
|||||||
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.9/community >> /etc/apk/repositories
|
RUN echo http://dl-cdn.alpinelinux.org/alpine/v3.9/community >> /etc/apk/repositories
|
||||||
RUN apk add --no-cache php7 php7-fpm php7-opcache php7-curl php7-json php7-zip
|
RUN apk add --no-cache php7 php7-fpm php7-opcache php7-curl php7-json php7-zip
|
||||||
|
|
||||||
|
RUN sed 's/listen = 127.0.0.1:9000/listen = \/run\/php-fpm.sock/g'
|
||||||
|
|
||||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||||
|
|
||||||
|
|
||||||
@ -37,4 +39,7 @@ WORKDIR /srv
|
|||||||
|
|
||||||
COPY Caddyfile /etc/Caddyfile
|
COPY Caddyfile /etc/Caddyfile
|
||||||
|
|
||||||
CMD ["caddy", "run", "--config", "/etc/Caddyfile", "--adapter", "caddyfile"]
|
COPY start.sh /start.sh
|
||||||
|
RUN chmod +x /start.sh
|
||||||
|
|
||||||
|
CMD ["/bin/sh", "/start.sh"]
|
||||||
|
Loading…
Reference in New Issue
Block a user