diff --git a/Dockerfile b/Dockerfile index d4eb890f..e400935d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,32 +1,32 @@ # 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 RUN 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/ # # Make docker-compose wait for container dependencies be ready # # Solution 2: use docker-compose-wait tool ------------------- # ENV WAIT_VERSION 2.7.2 # ADD https://github.com/ufoscout/docker-compose-wait/releases/download/$WAIT_VERSION/wait /wait # RUN chmod +x /wait USER 1001 -CMD /bin/bash -c 'python3 manage.py runserver 0.0.0.0:8080' +CMD /bin/bash -c 'npm run build && python3 manage.py runserver 0.0.0.0:8080'