Akeela Darryl commited on
Commit
58531a1
·
1 Parent(s): 580b13a

update commands

Browse files
Files changed (3) hide show
  1. .dockerignore +3 -1
  2. .gitignore +1 -0
  3. Dockerfile +3 -2
.dockerignore CHANGED
@@ -1 +1,3 @@
1
- .env
 
 
 
1
+ .env
2
+ .venv
3
+ __pycache__
.gitignore CHANGED
@@ -1 +1,2 @@
1
  .env
 
 
1
  .env
2
+ __pycache__
Dockerfile CHANGED
@@ -20,7 +20,8 @@ RUN useradd -m -u 1000 user
20
  USER user
21
  ENV PATH="/app/.venv/bin:$PATH"
22
  COPY --chown=user . /app
23
-
 
24
  # Run the application
25
  # Note: We point to server.app because we are inside /app/
26
- CMD ["uvicorn", "main:demo", "--host", "0.0.0.0", "--port", "7860"]
 
20
  USER user
21
  ENV PATH="/app/.venv/bin:$PATH"
22
  COPY --chown=user . /app
23
+ EXPOSE 7860
24
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
25
  # Run the application
26
  # Note: We point to server.app because we are inside /app/
27
+ CMD ["uv", "run", "main.py"]