# The first instruction is what image we want to base our container on # We Use an official Python runtime as a parent image FROM python:3.9 # The enviroment variable ensures that the python output is set straight # to the terminal with out buffering it first ENV PYTHONUNBUFFERED 1 # Set the working directory to /OACCT_checker WORKDIR /oacct_checker CMD chown 1001 /oacct_checker # Copy the current directory contents into the container at /OACCT_checker ADD . /oacct_checker/ # Install any needed packages specified in requirements.txt RUN pip install -r requirements.txt COPY . /oacct_checker/ USER 1001 CMD [ "python", "./manage.py runserver 0.0.0.0:8080" ]