Zhen Ye commited on
Commit
cac69cc
·
1 Parent(s): 6a6fabc

Use python 3.10.7 slim base image

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  ENV PYTHONUNBUFFERED=1 \
4
  PYTHONDONTWRITEBYTECODE=1
@@ -13,7 +13,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
13
  ffmpeg \
14
  && rm -rf /var/lib/apt/lists/* \
15
  && pip install --no-cache-dir --upgrade pip \
16
- && pip install --no-cache-dir -r requirements.txt
 
17
 
18
  COPY . .
19
 
 
1
+ FROM python:3.10.7-slim
2
 
3
  ENV PYTHONUNBUFFERED=1 \
4
  PYTHONDONTWRITEBYTECODE=1
 
13
  ffmpeg \
14
  && rm -rf /var/lib/apt/lists/* \
15
  && pip install --no-cache-dir --upgrade pip \
16
+ && pip install --no-cache-dir -r requirements.txt \
17
+ && python -c "import transformers; print('transformers', transformers.__version__); print('has Sam3Model', hasattr(transformers, 'Sam3Model'))"
18
 
19
  COPY . .
20