16 lines
442 B
Docker
16 lines
442 B
Docker
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
|