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.
 
 
 
 
 

36 lines
647 B

# My Django Project
# Version: 1.0
# FROM - Image to start building on.
FROM python:3
# PROJECT SETUP
# ----------------
# sets the working directory
WORKDIR /usr/src/django-docker
# copy these two files from <src> to <dest>
# <src> = current directory on host machine
# <dest> = filesystem of the container
COPY ../Pipfile* ./
# install pipenv on the container
RUN pip install -U pipenv
# install project dependencies
RUN pipenv install
# copy all files and directories from <src> to <dest>
COPY . .
# RUN SERVER
# ------------
# expose the port
EXPOSE 8000
# Command to run
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]