prthm11 commited on
Commit
d5009cf
·
verified ·
1 Parent(s): 7108607

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -24
Dockerfile CHANGED
@@ -1,24 +1,24 @@
1
- # Use a slim Python image
2
- FROM python:3.11-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Install system dependencies (needed for some python libs)
8
- RUN apt-get update && apt-get install -y \
9
- build-essential \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Copy requirements first for better caching
13
- COPY requirements.txt .
14
- RUN pip install --no-cache-dir -r requirements.txt
15
-
16
- # Copy the rest of your application and resources
17
- COPY . .
18
-
19
- # Expose the port Hugging Face uses
20
- EXPOSE 7860
21
-
22
- # Run the server using the SSE transport
23
- # We point to port 7860 as required by HF
24
- CMD ["python", "math_server.py", "--transport", "sse", "--port", "7860"]
 
1
+ # Use a slim Python image
2
+ FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies (needed for some python libs)
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements first for better caching
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy the rest of your application and resources
17
+ COPY . .
18
+
19
+ # Expose the port Hugging Face uses
20
+ EXPOSE 7860
21
+
22
+ # Run the server using the SSE transport
23
+ # We point to port 7860 as required by HF
24
+ CMD ["python", "server.py", "--transport", "sse", "--port", "7860"]