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"]