WIP: Docker enhancement
* reduce containers into a single one, holding nginx + celery + redis all at once
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
FROM python:3.7-slim
|
||||
FROM python:3.7
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
WORKDIR /konova
|
||||
|
||||
# Install some dependencies
|
||||
RUN apt update
|
||||
RUN apt install -y gdal-bin
|
||||
RUN apt install -y gdal-bin redis-server nginx
|
||||
|
||||
# Copy requirements file into workspace
|
||||
COPY ./requirements.txt /konova/
|
||||
@@ -13,6 +13,8 @@ RUN pip install --upgrade pip
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Copy rest of project into workspace
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
COPY ./nginx/nginx.conf /etc/nginx/conf.d
|
||||
COPY . /konova/
|
||||
|
||||
# Move static files in designated folder
|
||||
|
||||
Reference in New Issue
Block a user