EVAL/Dockerfile

26 lines
543 B
Docker
Raw Normal View History

2023-03-18 06:05:02 +00:00
FROM nvidia/cuda:11.7.0-runtime-ubuntu20.04
WORKDIR /app/
2023-03-18 08:48:13 +00:00
ENV DEBIAN_FRONTEND=noninteractive
2023-03-18 06:05:02 +00:00
RUN \
apt-get update && \
2023-03-18 09:14:31 +00:00
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
2023-03-18 08:41:31 +00:00
apt-get install -y python3.10 python3-pip curl && \
curl -sSL https://install.python-poetry.org | python3 -
2023-03-18 06:05:02 +00:00
2023-03-18 08:41:31 +00:00
ENV PATH "/root/.local/bin:$PATH"
COPY pyproject.toml .
COPY poetry.lock .
2023-03-23 08:53:25 +00:00
COPY api api
2023-03-18 09:14:31 +00:00
RUN poetry env use 3.10
2023-03-18 08:48:13 +00:00
RUN poetry install --with tools
2023-03-18 06:05:02 +00:00
COPY . .
ENV PORT 8000
ENTRYPOINT ["poetry", "run", "serve"]