-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 947 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
FROM alpine:3.19
ARG BRANCH=master
USER root
COPY entry.sh /entry.sh
RUN apk add git nginx php83-cli php83-fpm php83-fileinfo php83-ctype supervisor
# && mkdir /files
#COPY index.php /srv/single_php_filehost/index.php
# && git clone -b $BRANCH --single-branch https://github.com/Rouji/single_php_filehost.git /srv/single_php_filehost \
#RUN mkdir /files \
#RUN chown -R nginx:nobody /srv/single_php_filehost && chmod -R u=rwX,g=,o= /srv/single_php_filehost \
#RUN chown -R nginx:nobody /files && chmod -R u=rwX,g=,o= /files \
RUN rm /etc/nginx/http.d/default.conf \
# && echo -e "#!/bin/sh\n/usr/bin/php83 /srv/single_php_filehost/index.php purge" > /etc/periodic/daily/purge && chmod u+x /etc/periodic/daily/purge\
&& chmod u+x /entry.sh \
&& apk del git && rm -rf /var/cache/apk/*
COPY vhost.conf /etc/nginx/http.d/single_php_filehost.conf
COPY supervisord.conf /etc/supervisord.conf
VOLUME /files
EXPOSE 80
ENTRYPOINT ["/entry.sh"]