Fix the dockerfile and workflow

This commit is contained in:
2026-02-07 19:56:56 +03:00
parent ebce06004b
commit 23c761b4f8
2 changed files with 30 additions and 7 deletions

View File

@@ -1,8 +1,28 @@
FROM podman/stable:latest
ARG VERSION
RUN dnf install -y \
podman-docker \
podman-compose \
&& dnf clean all \
&& rm -rf /var/cache/yum \
&& touch /etc/containers/nodocker
FROM quay.io/podman/stable:${VERSION}
ARG REPO_MIRROR
RUN set -e; \
source /etc/os-release; \
export ARCH=`uname -m`; \
if ! test -z "${REPO_MIRROR}"; then \
dnf config-manager setopt \
fedora.baseurl=${REPO_MIRROR}/fedora/linux/updates/${VERSION_ID}/Everything/${ARCH}/; \
dnf config-manager setopt fedora.metalink=; \
dnf config-manager setopt \
updates.baseurl=${REPO_MIRROR}/fedora/linux/releases/${VERSION_ID}/Everything/${ARCH}/os/; \
dnf config-manager setopt updates.metalink=; \
fi; \
dnf install -y podman-docker;
RUN set -e; \
touch /etc/containers/nodocker; \
mkdir /run/podman;
RUN set -e; \
dnf clean all; \
rm -rf /var/cache/yum;
ENTRYPOINT ["/usr/bin/podman", "system", "service", "--time", "0", "unix:///run/podman/podman.sock"]