-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.10-slim
# System req
RUN apt-get -y update && apt-get install -y --no-install-recommends \
build-essential \
make \
libpq-dev \
curl
RUN apt-get install -y curl
# Copy only requirements to cache them in docker layer
WORKDIR /var/apps/sdk
COPY poetry.lock pyproject.toml README.md ./
# System deps:
ENV POETRY_VERSION=1.5.1
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr python - \
&& poetry --version \
&& poetry config installer.max-workers 10 \
&& poetry config virtualenvs.in-project true \
&& poetry install --only main --no-interaction --no-ansi --no-root
RUN apt-get -y purge --auto-remove build-essential make curl
COPY . .
CMD ["poetry", "run", "python", "-m", "examples.llm_example"]