Skip to content

Commit 79427ae

Browse files
committed
Add support to build release containers
Signed-off-by: Tobias Wolf <wolf@b1-systems.de> On-behalf-of: SAP <tobias.wolf@sap.com>
1 parent 276314f commit 79427ae

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/Containerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ghcr.io/gardenlinux/gardenlinux:2150.1.0 as installer
2+
3+
RUN ["apt-get", "update"]
4+
RUN ["apt-get", "install", "-y", "ca-certificates", "git", "python3", "python3-pip"]
5+
RUN ["mkdir", "-p", "/opt/app"]
6+
RUN ["python3", "-m", "venv", "--system-site-packages", "--without-pip", "/opt/app"]
7+
RUN ["/opt/app/bin/python", "-m", "pip", "install", "--break-system-packages", "git+https://github.com/gardenlinux/python-gardenlinux-lib.git@0.10.20"]
8+
9+
FROM ghcr.io/gardenlinux/gardenlinux:2150.1.0 as base
10+
LABEL org.opencontainers.image.source="https://github.com/gardenlinux/python-gardenlinux-lib"
11+
12+
RUN ["apt-get", "update"]
13+
RUN ["apt-get", "install", "-y", "podman", "python3"]
14+
15+
COPY --from=installer /opt/app /opt/app
16+
17+
WORKDIR /opt/app
18+
ENTRYPOINT ["/opt/app/bin/gl-oci"]

0 commit comments

Comments
 (0)