Diomedes Git commited on
Commit
18523d4
·
1 Parent(s): f659cc5

going dockerfile for the space, so i can use python3.13, among other reasons.

Browse files
Files changed (2) hide show
  1. Dockerfile +23 -0
  2. README.md +1 -3
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13-slim
2
+
3
+ ENV PYTHONUNBUFFERED=1
4
+ WORKDIR /app
5
+
6
+ # Build deps for lxml (and other C libs)
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ gcc \
9
+ libxml2-dev \
10
+ libxslt1-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ COPY . .
17
+
18
+ ENV GRADIO_SERVER_NAME=0.0.0.0
19
+ ENV GRADIO_SERVER_PORT=7860
20
+
21
+ EXPOSE 7860
22
+
23
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -3,9 +3,7 @@ title: cluas_huginn
3
  emoji: 💬
4
  colorFrom: yellow
5
  colorTo: purple
6
- sdk: gradio
7
- sdk_version: "6.0.0"
8
- app_file: app.py
9
  pinned: false
10
  hf_oauth: true
11
  hf_oauth_scopes:
 
3
  emoji: 💬
4
  colorFrom: yellow
5
  colorTo: purple
6
+ docker: true
 
 
7
  pinned: false
8
  hf_oauth: true
9
  hf_oauth_scopes: