-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (24 loc) · 964 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
35
36
FROM php:8.3-fpm-alpine
LABEL maintainer="Marc Anton Dahmen <https://marcdahmen.de>"
ARG version
ENV AUTOMAD_VERSION=$version
RUN apk update && \
apk add --no-cache nginx supervisor
RUN mkdir /var/lib/nginx/tmp/client_body
RUN chown -R www-data:www-data /var/lib/nginx
RUN chmod -R 755 /var/lib/nginx
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions zip curl gd
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
COPY etc/php.ini /usr/local/etc/php/
COPY etc/www.conf /usr/local/etc/php-fpm.d/
COPY etc/nginx.conf /etc/nginx/
COPY etc/automad.conf /etc/nginx/sites-enabled/
COPY etc/supervisord.conf /etc/
COPY init.sh /init.sh
RUN chmod +x /init.sh
WORKDIR /app
VOLUME /app
EXPOSE 80
CMD ["/init.sh"]