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.