VishwaTechnologiesPvtLtd commited on
Commit
e252ab0
·
1 Parent(s): 4e17d18

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Install Java and dependencies
5
+ RUN apt-get update && \
6
+ apt-get install -y openjdk-17-jre-headless wget unzip && \
7
+ apt-get clean
8
+
9
+ # Set environment variables for Java
10
+ ENV JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
11
+ ENV PATH="$JAVA_HOME/bin:$PATH"
12
+
13
+ # Set working directory
14
+ WORKDIR /app
15
+
16
+ # Copy requirements and install Python packages
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy application code
21
+ COPY . .
22
+
23
+ # Expose port (if using Gradio, FastAPI, Flask, etc.)
24
+ EXPOSE 7860
25
+
26
+ # Default command (update as needed)
27
+ CMD ["python", "app.py"]