Divyansh Kushwaha commited on
Commit
70d0374
·
1 Parent(s): 34b7458

Docker file updated

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -23
Dockerfile CHANGED
@@ -1,24 +1,4 @@
1
- # FROM python:3.9-slim
2
-
3
- # # Create a non-root user
4
- # RUN useradd -m -u 1000 user
5
- # USER user
6
- # ENV PATH="/home/user/.local/bin:$PATH"
7
-
8
- # # Set the working directory
9
- # WORKDIR /app
10
-
11
- # # Copy requirements and install dependencies
12
- # COPY --chown=user requirements.txt requirements.txt
13
- # RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
-
15
- # # Copy application code
16
- # COPY --chown=user . /app
17
-
18
- # # Command to run the FastAPI app
19
- # CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
20
-
21
-
22
  FROM python:3.9-slim
23
 
24
  # Create a non-root user
@@ -37,5 +17,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
37
  COPY --chown=user . /app
38
 
39
  # Start FastAPI (port 8000) and Streamlit (public port 7860)
40
- CMD bash -c "uvicorn api:app --host 0.0.0.0 --port 8000 & streamlit run app.py --server.port 7860 --server.address 0.0.0.0"
41
-
 
1
+ # base image
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  FROM python:3.9-slim
3
 
4
  # Create a non-root user
 
17
  COPY --chown=user . /app
18
 
19
  # Start FastAPI (port 8000) and Streamlit (public port 7860)
20
+ CMD bash -c "uvicorn api:app --host 0.0.0.0 --port 8000 & streamlit run app.py --server.port 7860 --server.address 0.0.0.0"