Skip to content

Commit 4e39b7d

Browse files
committed
fix: update permissions
1 parent 52e262f commit 4e39b7d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/docker.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
push:
44
branches:
55
- main
6+
7+
permissions:
8+
packages: write
9+
contents: write
10+
611
jobs:
712
get-mlflow-version:
813
runs-on: ubuntu-latest

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG PYTHON_VERSION=3.12-slim
2-
FROM python:${PYTHON_VERSION} as base
2+
FROM python:${PYTHON_VERSION} AS base
33

44
LABEL org.opencontainers.image.authors="Alexander Kharkevich <alex@kharkevich.org>"
55
LABEL org.opencontainers.image.source="http://github.com/kharkevich/mlflow-tracking-server"
@@ -8,7 +8,10 @@ LABEL org.opencontainers.image.licenses="Apache-2.0"
88
RUN adduser --disabled-password --gecos '' python
99
ENV 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

1316
RUN apt-get update && apt-get install -y \
1417
build-essential \
@@ -33,7 +36,7 @@ RUN poetry install --no-root --only main && \
3336
RUN . .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
3740
USER python
3841
WORKDIR /mlflow
3942
COPY --from=builder --chown=python:python /mlflow /mlflow

0 commit comments

Comments
 (0)