Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:16.04
- RUN apt-get update -y && \
- apt-get install -y python-pip python-dev
- RUN mkdir -p /app/src
- # We copy just the requirements.txt first to leverage Docker cache
- COPY ./requirements.txt /app/src/requirements.txt
- WORKDIR /app/src
- RUN pip install -r requirements.txt
- EXPOSE 5000
- CMD [ "gunicorn", "--reload", "-w", "10", "-b", "0.0.0.0:5000", "wsgi:app" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement