devray11 commited on
Commit
c5f03e2
·
verified ·
1 Parent(s): d22a734

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,19 +1,19 @@
1
- # Use Python 3.10 to match our pre-built engine
2
  FROM python:3.10-slim
3
 
4
- # Install only the light-weight math library needed for inference
5
  RUN apt-get update && apt-get install -y \
6
  libopenblas-dev \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /code
10
 
11
- # Install our requirements (this is now very fast)
12
  COPY ./requirements.txt /code/requirements.txt
13
  RUN pip install --no-cache-dir -r /code/requirements.txt
14
 
15
- # Copy your Python logic
16
  COPY . .
17
 
18
- # Start the API on port 7860
19
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use Python 3.10 (Matches the pre-built engine link above)
2
  FROM python:3.10-slim
3
 
4
+ # Install only basic system tools
5
  RUN apt-get update && apt-get install -y \
6
  libopenblas-dev \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /code
10
 
11
+ # Copy and install requirements
12
  COPY ./requirements.txt /code/requirements.txt
13
  RUN pip install --no-cache-dir -r /code/requirements.txt
14
 
15
+ # Copy the rest of your app
16
  COPY . .
17
 
18
+ # Start the API
19
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]