Cristobal299 commited on
Commit
716b957
·
verified ·
1 Parent(s): c354e8c

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Prevent Python from writing pyc files and buffering stdout/stderr
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ # Install system dependencies (none required for this simple app)
7
+ # If you need build tools for other packages, uncomment the next line
8
+ # RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /app
11
+ COPY . /app
12
+
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["python", "app.py"]