FROM docker.io/python:3.9-alpine # Allows docker to cache installed dependencies between builds COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . code WORKDIR /code EXPOSE 8000 RUN python3 /code/manage.py collectstatic --no-input ENTRYPOINT ["gunicorn"] CMD ["djangotea.wsgi:application", "--bind=0.0.0.0:8000"]