Update Dockerfile
This commit is contained in:
parent
934c1f98de
commit
10c3c2381c
1 changed files with 6 additions and 2 deletions
|
@ -35,6 +35,10 @@ RUN pip install --no-cache-dir --upgrade pip
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
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"]
|
|
||||||
|
|
Loading…
Reference in a new issue