Commit 6f4898ab authored by Romain Loth's avatar Romain Loth

added nginx and php handling inside main dockerfile

parent 93e5bce1
......@@ -6,7 +6,6 @@ FROM ubuntu:xenial
# Base
ENV HOST 0.0.0.0
ENV DEBUG_FLAG false
ENV LANG fr_FR.UTF-8
ENV DEBIAN_FRONTEND noninteractive
......@@ -15,15 +14,17 @@ RUN dpkg-reconfigure locales
# Install global dependencies and utilities
RUN apt update && apt autoclean
# if without nginx add php7.0-fpm php7.0-mysql
RUN apt install -y python3-pip libmysqlclient-dev git nano tree iputils-ping
RUN apt install -y python3-pip libmysqlclient-dev git nano tree iputils-ping nginx-full php7.0-fpm php7.0-mysql
RUN pip3 install --upgrade pip
# for comex2 itself ----------------------------------------------------------
# pull the comex server from repository
RUN echo "updating git"
# pull the comex server from repository...
RUN git clone https://github.com/moma/comex2.git
# ...or copy it locally
# RUN echo updating
# ADD comex2 /comex2
# Install project dependencies
RUN pip3 install -r comex2/setup/requirements.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment