Files
metasfresh-docker/docker-src/webui/Dockerfile
T
metas-jb 8683a40c15 #3 metasfresh/metasfresh-docker update Dockerfiles to 4.54.53
FRESH-1292 #3 Integrate docker-compose master files to metasfresh-docker on git
2017-02-02 16:59:05 +01:00

33 lines
940 B
Docker

FROM ubuntu:16.04
RUN apt update && apt -y full-upgrade
RUN apt -y install apache2 \
&& apt -y autoremove \
&& apt -y autoclean
RUN a2enmod proxy proxy_http proxy_html proxy_wstunnel rewrite
RUN a2dissite 000-default.conf default-ssl.conf
RUN mkdir -p /opt/metasfresh-webui-frontend
COPY sources/dist /opt/metasfresh-webui-frontend/dist
COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/
#add apache config
COPY sources/configs/metasfresh_webui.conf /etc/apache2/sites-available/
RUN a2ensite metasfresh_webui.conf
#set environment
RUN . /etc/apache2/envvars
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_LOG_DIR /var/log/apache2
RUN chown www-data:www-data -R /opt/metasfresh-webui-frontend/
EXPOSE 80
ENTRYPOINT ["apache2ctl", "-D", "FOREGROUND"]