mirror of
https://github.com/oupala/apaxy.git
synced 2025-08-08 10:36:27 +02:00
42
Dockerfile
42
Dockerfile
@@ -1,27 +1,29 @@
|
|||||||
FROM php:7.0-apache
|
FROM php:7.3-apache
|
||||||
MAINTAINER Inti Gabriel <inti.gabriel+github@intigabriel.de>
|
LABEL authors="Carlos Brandt <chbrandt@github>, Inti Gabriel <inti.gabriel+github@intigabriel.de>"
|
||||||
|
|
||||||
|
ARG HTDOCS=/var/www/html
|
||||||
|
|
||||||
|
ENV APACHE_RUN_USER=www-data \
|
||||||
|
APACHE_RUN_GROUP=www-data
|
||||||
|
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
ENV APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data APACHE_LOG_DIR=/var/log/apache2 APACHE_LOCK_DIR=/var/lock/apache2 APACHE_PID_FILE=/var/run/apache2.pid
|
|
||||||
|
|
||||||
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
|
COPY apache-config.conf /etc/apache2/sites-enabled/000-default.conf
|
||||||
COPY apaxy/ /var/www/html/
|
|
||||||
RUN mv /var/www/html/htaccess.txt /var/www/html/.htaccess && \
|
COPY apaxy/ $HTDOCS
|
||||||
mv /var/www/html/theme/htaccess.txt /var/www/html/theme/.htaccess && \
|
|
||||||
rm -f /var/www/html/index.html && \
|
RUN cd ${HTDOCS} && \
|
||||||
touch /var/www/html/example.gif && \
|
rm -f index.html && \
|
||||||
touch /var/www/html/example.jpg && \
|
sed -i "s:/{FOLDERNAME}::g" htaccess.txt && \
|
||||||
touch /var/www/html/example.txt && \
|
sed -i "s:/{FOLDERNAME}::g" theme/htaccess.txt && \
|
||||||
touch /var/www/html/example.md && \
|
grep -l "{FOLDERNAME}" theme/*.html | xargs -L1 -I {} \
|
||||||
touch /var/www/html/example && \
|
sed -i "s:/{FOLDERNAME}::g" {} && \
|
||||||
touch /var/www/html/example.mp4 && \
|
mv htaccess.txt .htaccess && \
|
||||||
touch /var/www/html/example.zip && \
|
mv theme/htaccess.txt theme/.htaccess
|
||||||
touch /var/www/html/example.doc && \
|
|
||||||
touch /var/www/html/example.xls && \
|
|
||||||
touch /var/www/html/example.pdf && \
|
RUN ["/bin/bash", "-c", \
|
||||||
touch /var/www/html/example.tex && \
|
"cd $HTDOCS && touch example.{gif,jpg,txt,md,mp4,zip,doc,xls,pdf,tex,c,mp3}"]
|
||||||
touch /var/www/html/example.c && \
|
|
||||||
touch /var/www/html/example.mp3
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
apaxy:
|
apaxy:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "80:80"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user