WaysAheadGlobal commited on
Commit
05fd864
·
verified ·
1 Parent(s): 3e0c7bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -16
Dockerfile CHANGED
@@ -1,36 +1,27 @@
1
- # Use official Python image
2
  FROM python:3.10-slim
3
 
4
- # Install git to clone the repo
5
  RUN apt-get update && \
6
  apt-get install -y git && \
7
- rm -rf /var/lib/apt/lists/* && \
8
- apt-get clean
9
 
10
- # Set working dir
11
  WORKDIR /app
12
 
13
- # Copy only requirements first
14
  COPY requirements.txt .
15
-
16
- # Install Python packages
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # Clone the LLaVA repo and copy only tinyllava folder
20
- RUN git clone --depth 1 https://github.com/haotian-liu/LLaVA.git /tmp/llava && \
21
- cp -r /tmp/llava/tinyllava ./tinyllava && \
22
- rm -rf /tmp/llava
23
 
24
- # Copy the rest of your code
25
  COPY . .
26
 
27
- # Expose Streamlit port
28
  EXPOSE 7860
29
 
30
- # Streamlit config for Docker
31
  ENV STREAMLIT_SERVER_HEADLESS=true
32
  ENV STREAMLIT_SERVER_PORT=7860
33
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
34
 
35
- # Run
36
  CMD ["streamlit", "run", "app.py"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && \
4
  apt-get install -y git && \
5
+ rm -rf /var/lib/apt/lists/*
 
6
 
 
7
  WORKDIR /app
8
 
9
+ # Copy requirements and install dependencies
10
  COPY requirements.txt .
 
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Clone TinyLLaVA Factory and copy tinyllava module
14
+ RUN git clone --depth 1 https://github.com/TinyLLaVA/TinyLLaVA_Factory.git /tmp/tlv && \
15
+ cp -r /tmp/tlv/tinyllava ./tinyllava && \
16
+ rm -rf /tmp/tlv
17
 
18
+ # Copy your app
19
  COPY . .
20
 
 
21
  EXPOSE 7860
22
 
 
23
  ENV STREAMLIT_SERVER_HEADLESS=true
24
  ENV STREAMLIT_SERVER_PORT=7860
25
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
26
 
 
27
  CMD ["streamlit", "run", "app.py"]