shashwatIDR commited on
Commit
797a48d
·
verified ·
1 Parent(s): 20aaf81

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set workdir
4
+ WORKDIR /app
5
+
6
+ # Copy files
7
+ COPY app.py /app
8
+
9
+ # Install dependencies
10
+ RUN pip install flask requests
11
+
12
+ # Expose port for HF Space
13
+ EXPOSE 7860
14
+
15
+ # Run the app
16
+ CMD ["python", "app.py"]