devray11 commited on
Commit
e91e62c
·
verified ·
1 Parent(s): b57fa94

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- # Use Python 3.10 on Debian Bookworm
2
  FROM python:3.10-slim-bookworm
3
 
4
- # Install basic math libraries
5
  RUN apt-get update && apt-get install -y \
6
  libopenblas-dev \
7
  libgomp1 \
@@ -9,11 +9,12 @@ RUN apt-get update && apt-get install -y \
9
 
10
  WORKDIR /code
11
 
12
- # Install the corrected requirements
13
  COPY ./requirements.txt /code/requirements.txt
14
  RUN pip install --no-cache-dir -r /code/requirements.txt
15
 
 
16
  COPY . .
17
 
18
- # Start the API
19
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use Python 3.10 on Debian
2
  FROM python:3.10-slim-bookworm
3
 
4
+ # Install basic math and system libraries
5
  RUN apt-get update && apt-get install -y \
6
  libopenblas-dev \
7
  libgomp1 \
 
9
 
10
  WORKDIR /code
11
 
12
+ # Install our requirements
13
  COPY ./requirements.txt /code/requirements.txt
14
  RUN pip install --no-cache-dir -r /code/requirements.txt
15
 
16
+ # Copy the rest of the application
17
  COPY . .
18
 
19
+ # Start the API on port 7860
20
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]