Skip to content

Instantly share code, notes, and snippets.

@merylldindin
Last active April 6, 2020 01:59
Show Gist options
  • Save merylldindin/b4747680db466b0da2c46bc1f40b60ff to your computer and use it in GitHub Desktop.
Save merylldindin/b4747680db466b0da2c46bc1f40b60ff to your computer and use it in GitHub Desktop.
FROM python:3.7-slim
RUN mkdir -p /app/storage
VOLUME /app
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install gunicorn
RUN pip install -r requirements.txt
COPY . /app
EXPOSE 5000
CMD [ "gunicorn", "-w", "4", "-t", "180", "-b", "0.0.0.0:5000", "-k", "flask_sockets.worker", "worker:app" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment