Update Dockerfile

This commit is contained in:
PCoder 2023-05-30 03:55:09 +00:00
parent 934c1f98de
commit 10c3c2381c

View file

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