Hak978 commited on
Commit
2e54772
·
verified ·
1 Parent(s): 1c1ed92

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile CHANGED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install Java (you can choose the JDK version that you need)
4
+ RUN apt-get update && apt-get install -y \
5
+ openjdk-11-jdk \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Set JAVA_HOME and PATH
9
+ ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
10
+ ENV PATH=$JAVA_HOME/bin:$PATH
11
+
12
+ # Set the working directory in the container
13
+ WORKDIR /app
14
+
15
+ # Copy the current directory contents into the container at /app
16
+ COPY . /app
17
+
18
+ # Install dependencies
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Expose port
22
+ EXPOSE 8080
23
+
24
+ # Start the Flask app
25
+ CMD ["flask", "run", "--host", "0.0.0.0", "--port", "8080"]