Complete python gRPC library and container (#6)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user