2022-01-10 13:52:40 +01:00
|
|
|
FROM python:3.7-slim
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
|
|
WORKDIR /konova
|
|
|
|
|
|
|
|
# Install some dependencies
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install -y gdal-bin
|
|
|
|
|
|
|
|
# Copy requirements file into workspace
|
|
|
|
COPY ./requirements.txt /konova/
|
|
|
|
RUN pip install --upgrade pip
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
# Copy rest of project into workspace
|
|
|
|
COPY . /konova/
|
|
|
|
|
2022-01-10 15:27:19 +01:00
|
|
|
# Move static files in designated folder
|
|
|
|
RUN python manage.py collectstatic --noinput
|
|
|
|
|