Dockerfile 700 B

1234567891011121314151617181920212223
  1. FROM egs-registry.cn-hangzhou.cr.aliyuncs.com/egs/vllm:0.8.2-pytorch2.6-cu124-20250328
  2. WORKDIR /app
  3. ENV PYTHONDONTWRITEBYTECODE=1
  4. ENV PYTHONUNBUFFERED=1
  5. ENV PIP_DISABLE_PIP_VERSION_CHECK=on
  6. ENV TZ=Asia/Shanghai
  7. RUN apt-get update && apt-get install -y curl gnupg ca-certificates \
  8. && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
  9. && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
  10. && apt-get clean \
  11. && rm -rf /var/lib/apt/lists/*
  12. COPY requirements.txt .
  13. RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
  14. COPY . .
  15. EXPOSE 8080
  16. CMD ["hypercorn", "task_app:app", "--config", "app_config.toml"]