Skip to content

Instantly share code, notes, and snippets.

@trstringer
Created January 14, 2018 15:51
Show Gist options
  • Save trstringer/c12c5b7b5f4f8425eddf14816b781cad to your computer and use it in GitHub Desktop.
Save trstringer/c12c5b7b5f4f8425eddf14816b781cad to your computer and use it in GitHub Desktop.
FROM python:alpine3.6
WORKDIR /usr/src/app
EXPOSE 8000
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "--workers=2", "--bind=0.0.0.0:8000", "app:app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment