Azure / Azure/MachineLearningNotebooks

Custom Dockerfile on Azure Environment with python poetry

Đang mở
#1,655 0 bình luận 5 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
4.4k
Fork
2.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Its really helpful to work with custom environment on clouds. Azure currently has options to work directly with conda dependencies or requirements.txt.(for instance Environment.from_pip_requirements(), )
i was wondering if there was a way to also work directly with poetry toml files same way or use them easily in dockerfile.
i am new to working with custom dockerfile on Azure, maybe i am missing out something here?

At the moment i tried to use with Docker but it did not quite work.

`FROM python:3.8-slim-buster
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
POETRY_VERSION=1.1.7 \
PYLINT_VERSION=2.9.4

RUN pip install pylint==$PYLINT_VERSION \
&& pip install "poetry==$POETRY_VERSION"

COPY pyproject.toml ./
RUN poetry config virtualenvs.create false `

Thanks 😃

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.