Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile explanation #113

Open
azro352 opened this issue Aug 15, 2023 · 0 comments
Open

Dockerfile explanation #113

azro352 opened this issue Aug 15, 2023 · 0 comments

Comments

@azro352
Copy link

azro352 commented Aug 15, 2023

Hi,

I understand the purpose of the project to build a docker with not only mlflow but also sql, s3, ... dependencies, but I'm unsure about
why the Dockerfile is like it is

I understand the multi-stage docker purpose, but here why can't we just install the dependencies like the following, I don't understnad the lib installation part not the Install build-essential to compile extensions comment ?

FROM python:3.9.16-slim

WORKDIR /mlflow/

COPY pyproject.toml poetry.toml poetry.lock /mlflow/

RUN python -m pip install --upgrade pip
RUN pip install poetry wheel &&  poetry install --no-root --no-dev

ENV PATH=/mlflow/.venv/bin:$PATH
ENV PYTHONUNBUFFERED 1

CMD mlflow server --backend-store-uri sqlite:///:memory --default-artifact-root ./mlruns --host=0.0.0.0 --port=5000

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant