# 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 to # = current directory on host machine # = 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 to COPY . . # RUN SERVER # ------------ # expose the port EXPOSE 8000 # Command to run CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]