Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ROM python:3.8
- # set a directory for the app
- WORKDIR /usr/src/app
- # copy all the files to the container
- COPY . .
- # install dependencies
- RUN pip install --no-cache-dir -r requirements.txt
- RUN pip install Flask gunicorn
- RUN apt-get install util-linux
- # run the command
- CMD exec gunicorn --bind :$PORT --timeout 0 main:app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement