Ashvanth.S commited on
Commit
fdeaa04
·
1 Parent(s): ebee476

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -10,12 +10,12 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Make port 8000 available to the world outside this container
14
- EXPOSE 8000
15
 
16
  # Create a non-root user and switch to it
17
  RUN adduser --disabled-password --gecos '' appuser
18
  USER appuser
19
 
20
  # Run main_app.py when the container launches
21
- CMD ["uvicorn", "main_app:app", "--host", "127.0.0.1", "--port", "7860"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Make port 7860 available to the world outside this container
14
+ EXPOSE 7860
15
 
16
  # Create a non-root user and switch to it
17
  RUN adduser --disabled-password --gecos '' appuser
18
  USER appuser
19
 
20
  # Run main_app.py when the container launches
21
+ CMD ["python", "main_app.py"]