mirror of https://github.com/corca-ai/EVAL
build: divide dockerfile
parent
1fdf63741f
commit
930577a5be
@ -0,0 +1,27 @@
|
||||
FROM python:3.10
|
||||
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 .
|
||||
|
||||
COPY api api
|
||||
RUN poetry env use 3.10
|
||||
RUN poetry config installer.max-workers 10
|
||||
RUN poetry install --with tools
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV PORT 8000
|
||||
|
||||
ENTRYPOINT ["poetry", "run", "serve"]
|
Loading…
Reference in New Issue