konova/Dockerfile
mpeltriaux 77855b40ee # Docker Production
* adds further settings to create a production-ready docker configuration
2022-01-13 09:29:38 +01:00

21 lines
417 B
Docker

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/
# Move static files in designated folder
RUN python manage.py collectstatic --noinput