File size: 515 Bytes
a4ebbec
4670dfa
 
 
137b7f1
1792bb4
4670dfa
a4ebbec
137b7f1
a4ebbec
137b7f1
ec94990
e2e9c74
137b7f1
 
07e5103
 
ff119bb
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 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

EXPOSE 7860
CMD ["python", "-u", "app.py"]