Advertisement
Maroxtn

Untitled

Aug 24th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. ROM python:3.8
  2. # set a directory for the app
  3. WORKDIR /usr/src/app
  4. # copy all the files to the container
  5. COPY . .
  6. # install dependencies
  7. RUN pip install --no-cache-dir -r requirements.txt
  8. RUN pip install Flask gunicorn
  9. RUN apt-get install util-linux
  10. # run the command
  11. CMD exec gunicorn --bind :$PORT --timeout 0 main:app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement