blob: 4eeae7a5d4f66099706d34e2c196cfa4f962d5f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
FROM startx/sv-apache
MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
RUN dnf -y install php php-cli php-pear \
php-gd php-mcrypt php-mysqlnd php-soap \
php-pdo php-process php-common php-mbstring \
php-bcmath php-php-gettext php-tcpdf \
php-tcpdf-dejavu-sans-fonts php-tidy \
&& dnf clean all
COPY httpd.conf $HTTPDCONF
COPY php.ini /etc/php.d/sx.ini
COPY *.sh /bin/
RUN chmod 775 /bin/run.sh /bin/sx-php.sh && \
chmod ug+r $HTTPDCONF
COPY ./ $APP_PATH
RUN rm -f $APP_PATH/Dockerfile $APP_PATH/httpd.conf $APP_PATH/run.sh $APP_PATH/sx-php.sh && \
chown -R apache:apache $DATA_PATH $APP_PATH $LOG_PATH && \
chmod ug+r -R $DATA_PATH $APP_PATH
EXPOSE 80 443
CMD [ "/bin/run.sh" ]
|