Complete python gRPC library and container (#6)

This commit is contained in:
2023-01-09 19:32:49 -07:00
parent ead0aeff2e
commit 359cef9180
17 changed files with 377 additions and 76 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM python:3.11-alpine as builder
# Install poetry
RUN apk add curl
RUN curl -sSL https://install.python-poetry.org > install_poetry.py && \
chmod +x install_poetry.py && \
./install_poetry.py
COPY . /build
WORKDIR /build
RUN ~/.local/bin/poetry config virtualenvs.create false --local
RUN pip3 install .
FROM python:3.11-alpine
COPY --from=builder /usr/local/lib/python3.11/site-packages/ /usr/local/lib/python3.11/site-packages