mirror of
https://github.com/corca-ai/EVAL
synced 2024-10-30 09:20:44 +00:00
3ec0cc786c
* refactor: api, core * feat: static uploader * doc: update readme * fix: mkdir static file * doc: typo
25 lines
530 B
Docker
25 lines
530 B
Docker
FROM nvidia/cuda:11.7.0-runtime-ubuntu20.04
|
|
WORKDIR /app/
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get install -y software-properties-common && \
|
|
add-apt-repository ppa:deadsnakes/ppa && \
|
|
apt-get install -y python3.10 python3-pip curl && \
|
|
curl -sSL https://install.python-poetry.org | python3 -
|
|
|
|
ENV PATH "/root/.local/bin:$PATH"
|
|
|
|
COPY pyproject.toml .
|
|
COPY poetry.lock .
|
|
|
|
RUN poetry env use 3.10
|
|
RUN poetry install --with tools
|
|
|
|
COPY . .
|
|
|
|
ENV PORT 8000
|
|
|
|
ENTRYPOINT ["poetry", "run", "serve"] |