WIP: Docker enhancement
* reduces all needed containers into a single one * simplifies initial startup command by adding docker-entrypoint.sh
This commit is contained in:
@@ -7,14 +7,16 @@ WORKDIR /konova
|
||||
RUN apt update
|
||||
RUN apt install -y gdal-bin redis-server nginx
|
||||
|
||||
# Copy requirements file into workspace
|
||||
# Copy requirements file into workspace and install all dependencies
|
||||
COPY ./requirements.txt /konova/
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Copy rest of project into workspace
|
||||
# Remove nginx default configuration and replace with own configuration
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
COPY ./nginx/nginx.conf /etc/nginx/conf.d
|
||||
COPY ./nginx.conf /etc/nginx/conf.d
|
||||
|
||||
# Copy rest of project into workspace
|
||||
COPY . /konova/
|
||||
|
||||
# Move static files in designated folder
|
||||
|
||||
Reference in New Issue
Block a user