File size: 678 Bytes
a4ebbec
4670dfa
 
 
137b7f1
1792bb4
4670dfa
a4ebbec
137b7f1
de8d25e
 
137b7f1
ec94990
e2e9c74
137b7f1
 
07e5103
 
cb08759
 
 
ff119bb
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.9-slim

WORKDIR /app

RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

RUN echo "Forcing re-clone: v1" && rm -rf /app/nanoVLM && git clone https://github.com/huggingface/nanoVLM.git /app/nanoVLM


ENV PYTHONPATH="/app/nanoVLM:${PYTHONPATH}" 
ENV HF_HOME=/app/.cache/huggingface
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME

COPY app.py app.py 
# Your new Gradio app.py that calls generate.py
#changes to app.py should be made to use the nanoVLM library
# COPY static static
# COPY templates templates
EXPOSE 7860
CMD ["python", "-u", "app.py"]