File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG GL_VERSION=2150.0.0
2+ ARG PY_GL_VERSION=0.10.20
3+
4+ FROM ghcr.io/gardenlinux/gardenlinux:${GL_VERSION} as installer
5+
6+ ARG PY_GL_VERSION
7+ ENV PY_GL_VERSION=${PY_GL_VERSION}
8+
9+ RUN apt-get update
10+ RUN apt-get install -y ca-certificates git python3 python3-pip
11+ RUN mkdir -p /opt/app
12+ RUN python3 -m venv --system-site-packages --without-pip /opt/app
13+ RUN /opt/app/bin/python -m pip install --break-system-packages git+https://github.com/gardenlinux/python-gardenlinux-lib.git@${PY_GL_VERSION}
14+
15+ FROM ghcr.io/gardenlinux/gardenlinux:${GL_VERSION} as base
16+ LABEL org.opencontainers.image.source="https://github.com/gardenlinux/python-gardenlinux-lib"
17+
18+ RUN apt-get update
19+ RUN apt-get install -y podman python3
20+
21+ COPY --from=installer /opt/app /opt/app
22+
23+ WORKDIR /opt/app
24+ ENTRYPOINT ["/opt/app/bin/gl-oci" ]
You can’t perform that action at this time.
0 commit comments