Skip to content

Instantly share code, notes, and snippets.

@amancioandre
Created March 26, 2020 15:55
Show Gist options
  • Select an option

  • Save amancioandre/36bd1663589b7430567d03682bc4b322 to your computer and use it in GitHub Desktop.

Select an option

Save amancioandre/36bd1663589b7430567d03682bc4b322 to your computer and use it in GitHub Desktop.
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