rahuln2002 commited on
Commit
2262958
·
verified ·
1 Parent(s): 585d0be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
  FROM python:3.12.9-slim-bookworm
2
  WORKDIR /app
 
3
  COPY requirements.txt .
4
  RUN apt update && apt install -y curl git
5
  RUN pip install --no-cache-dir -r requirements.txt
6
- RUN mkdir -p /app/logs && chmod 777 /app/logs
7
  RUN python -c "from transformers import AutoModelForSeq2SeqLM; AutoModelForSeq2SeqLM.from_pretrained('facebook/bart-large-cnn')"
8
  RUN curl -fsSL https://ollama.com/install.sh -o install.sh && chmod +x install.sh && ./install.sh && rm install.sh
9
  COPY . .
 
1
  FROM python:3.12.9-slim-bookworm
2
  WORKDIR /app
3
+ ENV OLLAMA_DIR=/app/.ollama
4
  COPY requirements.txt .
5
  RUN apt update && apt install -y curl git
6
  RUN pip install --no-cache-dir -r requirements.txt
7
+ RUN mkdir -p /app/logs /app/.ollama && chmod -R 777 /app/.ollama /app/logs
8
  RUN python -c "from transformers import AutoModelForSeq2SeqLM; AutoModelForSeq2SeqLM.from_pretrained('facebook/bart-large-cnn')"
9
  RUN curl -fsSL https://ollama.com/install.sh -o install.sh && chmod +x install.sh && ./install.sh && rm install.sh
10
  COPY . .