Created
October 10, 2020 06:45
-
-
Save jmoz/eca764892443ab85623f9c86e5839f26 to your computer and use it in GitHub Desktop.
Dockerfile for Django, python-slim (requirements had Twisted which caused gcc and other errors)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8-slim | |
ENV PYTHONUNBUFFERED=1 | |
RUN mkdir /code | |
WORKDIR /code | |
COPY requirements.txt /code/ | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends gcc build-essential \ | |
&& pip3 install -r requirements.txt \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& apt-get purge -y --auto-remove gcc build-essential | |
COPY . /code/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment