rtik007 commited on
Commit
cfe8fa3
·
verified ·
1 Parent(s): 6afb952

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install Java
4
+ RUN apt-get update && apt-get install -y default-jre && apt-get clean
5
+
6
+ # Install Python dependencies
7
+ COPY requirements.txt requirements.txt
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Set the working directory
11
+ WORKDIR /home/user/app
12
+
13
+ # Copy application code
14
+ COPY . .
15
+
16
+ # Run the application
17
+ CMD ["python", "app.py"]