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.
 
 

21 lines
462 B

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

Powered by TurnKey Linux.