2022-06-22 22:38:12 +02:00
|
|
|
FROM opensuse/leap:15.3
|
2022-04-04 18:31:55 +02:00
|
|
|
|
|
|
|
ENV KASMVNC_BUILD_OS opensuse
|
|
|
|
ENV KASMVNC_BUILD_OS_CODENAME 15
|
|
|
|
|
|
|
|
RUN zypper -n install -y \
|
|
|
|
gpg* \
|
|
|
|
less \
|
|
|
|
lsb-release \
|
|
|
|
rng-tools \
|
|
|
|
rpm-build \
|
|
|
|
rpmdevtools \
|
|
|
|
rpmlint \
|
|
|
|
tree \
|
|
|
|
vim
|
|
|
|
|
2022-11-24 13:22:28 +01:00
|
|
|
# Cache repo updates, so that spec changes don't trigger it on every build.
|
|
|
|
RUN zypper refresh
|
2022-04-04 18:31:55 +02:00
|
|
|
COPY opensuse/*.spec /tmp
|
2022-11-24 13:22:28 +01:00
|
|
|
|
2022-04-04 18:31:55 +02:00
|
|
|
RUN zypper -n install $(grep BuildRequires /tmp/*.spec | cut -d' ' -f2 | xargs)
|
|
|
|
|
|
|
|
RUN useradd -u 1000 -m -d /home/docker docker && \
|
|
|
|
groupadd -g 1000 docker && \
|
|
|
|
usermod -a -G docker docker
|
|
|
|
|
|
|
|
USER docker
|