add conatiner for webserver
This commit is contained in:
19
docker/Dockerfile
Normal file
19
docker/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM php:apache
|
||||
|
||||
RUN mkdir -p /var/www
|
||||
WORKDIR /var/www
|
||||
|
||||
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||
COPY apache2.conf /etc/apache2/apache2.conf
|
||||
RUN apt-get update && apt-get install -y curl && \
|
||||
a2enmod rewrite
|
||||
|
||||
COPY build.sh /var/www/build.sh
|
||||
RUN curl https://gitea.finnvanreenen.nl/LailaTheElf/webTemplate/releases/download/v0.4.0/webTemplate-x86_64 \
|
||||
--output /var/www/webtemplate && \
|
||||
chmod +x /var/www/webtemplate && \
|
||||
chmod +x /var/www/build.sh
|
||||
|
||||
VOLUME /var/www/src
|
||||
|
||||
CMD ["/var/www/build.sh"]
|
||||
Reference in New Issue
Block a user