suryatmodulus
/

File size: 915 Bytes
96a4100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nvidia/cuda:13.0.1-cudnn-runtime-ubuntu24.04

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    HF_HUB_OFFLINE=1 \
    TRANSFORMERS_OFFLINE=1 \
    GPC1_MAX_CONCURRENCY=1
WORKDIR /srv/gpc1
RUN apt-get update && apt-get install -y --no-install-recommends python3.12 python3-pip \
    && rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN python3.12 -m pip install --no-cache-dir --break-system-packages \
    --index-url https://download.pytorch.org/whl/cu130 torch==2.9.1 torchvision==0.24.1 \
    && python3.12 -m pip install --no-cache-dir --break-system-packages -r requirements.txt
COPY gpc1_server ./gpc1_server
COPY assets ./assets
COPY adapter ./adapter
RUN useradd --create-home --uid 10001 gpc1 && chown -R gpc1:gpc1 /srv/gpc1
USER gpc1
EXPOSE 8000
CMD ["python3.12", "-m", "uvicorn", "gpc1_server.api:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1", "--no-access-log"]