Merge branch 'master' of https://git.un-hack-bar.de/UNHB/dfi-html
This commit is contained in:
commit
6fb4a3697b
2 changed files with 36 additions and 0 deletions
29
Dockerfile
Normal file
29
Dockerfile
Normal file
|
@ -0,0 +1,29 @@
|
|||
FROM debian:9.2
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install -y git curl ffmpeg wget
|
||||
RUN apt-get install -y apache2 php php-cli php-mysql php-sqlite3 php-xml php-gd php-curl php-mbstring
|
||||
|
||||
ADD start.sh /root/start.sh
|
||||
|
||||
RUN chmod +x /root/start.sh
|
||||
|
||||
RUN rm -rf /var/www/*
|
||||
|
||||
# Configure apache
|
||||
RUN a2enmod rewrite
|
||||
RUN chown -R www-data:www-data /var/www
|
||||
ENV APACHE_RUN_USER www-data
|
||||
ENV APACHE_RUN_GROUP www-data
|
||||
ENV APACHE_LOG_DIR /tmp
|
||||
ENV APACHE_RUN_DIR /var/run/apache2
|
||||
ENV APACHE_PID_FILE /tmp/apache.pid
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
RUN echo 1
|
||||
RUN git clone https://git.un-hack-bar.de/UNHB/dfi-html.git /var/www/html
|
||||
|
||||
CMD ["/root/start.sh"]
|
||||
|
7
start.sh
Executable file
7
start.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
mkdir /var/www/
|
||||
mkdir /var/www/config
|
||||
mkdir /var/www/htdocs
|
||||
mkdir /var/www/logs
|
||||
|
||||
apachectl -D FOREGROUND
|
Loading…
Reference in a new issue