DeepImagix commited on
Commit
ee5ac17
·
verified ·
1 Parent(s): 71e3bde

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -29,6 +29,7 @@ RUN pip install --upgrade pip \
29
  # Copy all individual files
30
  COPY ./utils.py /code/utils.py
31
  COPY ./main.py /code/main.py
 
32
  COPY ./model_info.py /code/model_info.py
33
  COPY ./maintenance_control.py /code/maintenance_control.py
34
  COPY ./usage_logger.py /code/usage_logger.py
@@ -57,6 +58,8 @@ USER appuser
57
  EXPOSE 7860
58
 
59
  # Start the app
 
 
60
  #CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
61
  # Change the CMD to:
62
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--timeout-keep-alive", "60"]
 
29
  # Copy all individual files
30
  COPY ./utils.py /code/utils.py
31
  COPY ./main.py /code/main.py
32
+ COPY ./neura_self_hosted.py /code/neura_self_hosted.py
33
  COPY ./model_info.py /code/model_info.py
34
  COPY ./maintenance_control.py /code/maintenance_control.py
35
  COPY ./usage_logger.py /code/usage_logger.py
 
58
  EXPOSE 7860
59
 
60
  # Start the app
61
+ ## This command activates your new AI
62
+ uvicorn neura_self_hosted:app --reload
63
  #CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
64
  # Change the CMD to:
65
+ CMD ["uvicorn", "neura_self_hosted:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--timeout-keep-alive", "60"]