File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 4646 target : rust
4747 build-args : IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }}
4848 tags : ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.version-without-v }}-rust,ghcr.io/${{ github.repository }}:rust
49+
50+ - name : build'n'push - python
51+ uses : docker/build-push-action@v4.0.0
52+ with :
53+ context : src
54+ push : true
55+ target : rust
56+ build-args : IMAGE_VERSION=${{ steps.get_version.outputs.version-without-v }}
57+ tags : ghcr.io/${{ github.repository }}:${{ steps.get_version.outputs.version-without-v }}-python,ghcr.io/${{ github.repository }}:python
58+
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN dnf update -y && \
1616 bat \
1717 dnsutils \
1818 htop \
19+ which \
1920 podman slirp4netns fuse-overlayfs --exclude container-selinux && \
2021 dnf reinstall -y shadow-utils && \
2122 dnf clean all && \
@@ -118,3 +119,10 @@ USER queil
118119RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
119120
120121ENV PATH="${PATH}:${HOME}/.cargo/bin"
122+
123+ # VARIANT - PYTHON
124+
125+ FROM base as python
126+
127+ RUN ln -s /usr/bin/python3 /usr/bin/python && \
128+ dnf install -y poetry && dnf clean all && rm -rf /var/cache/yum
You can’t perform that action at this time.
0 commit comments