dev2004v commited on
Commit
8c77ce6
·
verified ·
1 Parent(s): 0245cdc

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +18 -0
  2. requirements.txt +4 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python slim image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /code
6
+
7
+ # Install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy app code
12
+ COPY ./app ./app
13
+
14
+ # Expose port
15
+ EXPOSE 7860
16
+
17
+ # Run FastAPI app
18
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ transformers
4
+ torch