Last active
April 6, 2020 01:59
-
-
Save merylldindin/b4747680db466b0da2c46bc1f40b60ff to your computer and use it in GitHub Desktop.
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.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