Advertisement
AsmodaiP

Dockerfile

Dec 7th, 2021
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.23 KB | None | 0 0
  1. FROM python:3.7-slim
  2.  
  3. RUN mkdir /app
  4.  
  5. COPY requirements.txt /app
  6.  
  7. RUN pip3 install -r /app/requirements.txt --no-cache-dir
  8.  
  9. COPY . /app
  10.  
  11. WORKDIR /app/
  12.  
  13. CMD ["gunicorn", "api_yamdb.wsgi:application", "--bind", "0:8000" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement