Develop #134
@@ -1,15 +1,20 @@
|
|||||||
FROM registry.fedoraproject.org/fedora:42
|
FROM registry.fedoraproject.org/fedora:42
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
microdnf -y install \
|
microdnf -y install \
|
||||||
rubygems rpmbuild bsdtar
|
rubygems rpmbuild bsdtar mingw-nsis-base.x86_64 mingw32-nsis.noarch; \
|
||||||
|
microdnf clean all;
|
||||||
|
|
||||||
RUN useradd -m -r -d /home/builder -s /bin/bash builder; \
|
# create user with 999 UID/GID
|
||||||
|
RUN set -eux; \
|
||||||
|
groupadd -g 999 builder && \
|
||||||
|
useradd -m -r -u 999 -g 999 -d /home/builder -s /bin/bash builder && \
|
||||||
chown builder:builder /home/builder
|
chown builder:builder /home/builder
|
||||||
|
|
||||||
USER builder
|
USER builder
|
||||||
ENV PATH="/home/builder/bin:${PATH}"
|
ENV PATH="/home/builder/bin:${PATH}"
|
||||||
WORKDIR /home/builder
|
WORKDIR /home/builder
|
||||||
RUN gem install fpm
|
RUN set -eux; \
|
||||||
|
gem install fpm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user