VishwaTechnologiesPvtLtd commited on
Commit
3750ba1
·
1 Parent(s): 63f82d3
Files changed (1) hide show
  1. Dockerfile +16 -20
Dockerfile CHANGED
@@ -1,27 +1,23 @@
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"]
 
1
+ FROM python:3.10
 
2
 
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ openjdk-17-jre-headless \
6
+ git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
7
+ curl fakeroot && \
8
+ rm -rf /var/lib/apt/lists/*
9
 
10
+ # Setup Node.js (if needed)
11
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
12
+ apt-get install -y nodejs
13
 
14
+ # Python dependencies
15
+ COPY requirements.txt /tmp/requirements.txt
16
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
17
 
18
+ # Set workdir
19
+ WORKDIR /home/user/app
 
 
 
20
  COPY . .
21
 
22
+ # Your app entrypoint
 
 
 
23
  CMD ["python", "app.py"]