Skip to content

Commit fdb6d74

Browse files
committed
Add Python variant
1 parent 9310ac5 commit fdb6d74

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,13 @@ jobs:
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+

src/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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
118119
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
119120

120121
ENV 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

0 commit comments

Comments
 (0)