From c7bf5e5d8a9baa816c39cce2d70dac7896ee2f1b Mon Sep 17 00:00:00 2001 From: Jonathan Inge Arvesen Folland Date: Mon, 3 Mar 2025 21:34:49 +0100 Subject: [PATCH] Update Dockerfile --- backend/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 1884a5f..7c28661 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -6,10 +6,11 @@ COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Mounts the application code to the image -COPY . app +RUN mkdir /app +COPY . /app WORKDIR /app EXPOSE 8000 -# Runs migrations and starts the production server +# Runs migrations and starts the server CMD ["sh", "-c", "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"]