akashD22 commited on
Commit
e4e4c48
·
verified ·
1 Parent(s): 2280b21

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y libglib2.0-0 && \
5
+ pip install --no-cache-dir fastapi uvicorn transformers torch pillow
6
+
7
+ # Copy code
8
+ COPY . /app
9
+ WORKDIR /app
10
+
11
+ # Run FastAPI
12
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]