You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
462 B

  1. FROM python:3
  2. ENV PYTHONUNBUFFERED=1
  3. #WORKDIR /usr/src/app
  4. #COPY requirements.txt ./
  5. #RUN pip install --no-cache-dir -r requirements.txt
  6. #RUN pip install django djangorestframework psycopg2
  7. RUN mkdir /etc/project
  8. #VOLUME [ "/vagrant","/etc/project" ]
  9. WORKDIR /etc/project
  10. COPY requirements.txt .
  11. RUN pip install --upgrade pip
  12. RUN pip install -r requirements.txt
  13. #$ docker build -t my-python-app .
  14. #$ docker run -it --rm --name my-running-app my-python-app

Powered by TurnKey Linux.