diff --git a/Dockerfile b/Dockerfile index 7152b788..bd4bcd21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,10 @@ RUN pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir -r requirements.txt -EXPOSE 8000 +# Copy entrypoint.sh script and grant execute permissions +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +# Run migrations and start the server +ENTRYPOINT ["/entrypoint.sh"] -CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]