File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - main
6+
7+ permissions :
8+ packages : write
9+ contents : write
10+
611jobs :
712 get-mlflow-version :
813 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11ARG PYTHON_VERSION=3.12-slim
2- FROM python:${PYTHON_VERSION} as base
2+ FROM python:${PYTHON_VERSION} AS base
33
44LABEL org.opencontainers.image.authors="Alexander Kharkevich <alex@kharkevich.org>"
55LABEL org.opencontainers.image.source="http://github.com/kharkevich/mlflow-tracking-server"
@@ -8,7 +8,10 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
88RUN adduser --disabled-password --gecos '' python
99ENV PYTHONUNBUFFERED=1
1010
11- FROM base as builder
11+ RUN apt-get update && apt-get install -y \
12+ && rm -rf /var/lib/apt/lists/*
13+
14+ FROM base AS builder
1215
1316RUN apt-get update && apt-get install -y \
1417 build-essential \
@@ -33,7 +36,7 @@ RUN poetry install --no-root --only main && \
3336RUN . .venv/bin/activate && \
3437 pip install --no-cache-dir --no-deps mlflow==$(pip show mlflow-skinny | awk '/Version:/ {print $2}' )
3538
36- FROM base as final
39+ FROM base AS final
3740USER python
3841WORKDIR /mlflow
3942COPY --from=builder --chown=python:python /mlflow /mlflow
You can’t perform that action at this time.
0 commit comments