Created
March 26, 2020 15:55
-
-
Save amancioandre/36bd1663589b7430567d03682bc4b322 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.7-alpine | |
| WORKDIR /app | |
| RUN apk update && apk upgrade | |
| RUN apk add --no-cache make g++ bash git openssh postgresql-dev curl | |
| RUN apk add --no-cache jpeg-dev zlib-dev | |
| RUN apk add --no-cache gcc libc-dev fortify-headers linux-headers libxslt-dev | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| ADD ./requirements.txt /app | |
| RUN pip install --no-cache -r requirements.txt | |
| COPY ./ /app | |
| EXPOSE 80 | |
| ENTRYPOINT [ "gunicorn", "-w 4", "-b", "0.0.0.0:80", "wsgi:app" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment