IS361Group4 commited on
Commit
b45f120
·
verified ·
1 Parent(s): 093c7e9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image with Python and necessary tools
2
+ FROM python:3.12-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the application files to the container
8
+ COPY . /app
9
+
10
+
11
+ # Install Python dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ ENV TRANSFORMERS_CACHE=/tmp
15
+ ENV PORT=7860
16
+
17
+ # Command to run the application
18
+ CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--workers", "2"]