commit | author | age | ||
71c082 | 1 | FROM python:3.12 |
JK | 2 | |
3 | ENV HF_HOME=huggingface | |
4 | ||
5 | COPY requirements.txt . | |
6 | RUN pip install --no-cache-dir -r requirements.txt | |
7 | ||
8 | RUN addgroup --gid 200 --system app && adduser --uid 200 --gid 200 --home /app app | |
9 | WORKDIR /app | |
10 | USER app | |
11 | ||
12 | COPY --chown=200:200 src src | |
13 | RUN python src/download.py | |
14 | ||
15 | ENV HF_DATASETS_OFFLINE=1 | |
16 | ENV HF_HUB_OFFLINE=1 | |
17 | EXPOSE 8000 | |
18 | CMD ["python", "src/run.py"] |