Просмотр исходного кода

cicd: useradd after installing it

jamesread 3 лет назад
Родитель
Сommit
770c6c06bf
3 измененных файлов с 6 добавлено и 6 удалено
  1. 2 2
      Dockerfile
  2. 2 2
      Dockerfile.arm64
  3. 2 2
      Dockerfile.armv7

+ 2 - 2
Dockerfile

@@ -1,7 +1,5 @@
 FROM --platform=linux/amd64 registry.fedoraproject.org/fedora-minimal:36-x86_64
 
-RUN useradd --system --create-home olivetin -u 1000 
-
 RUN mkdir -p /config /var/www/olivetin \
     && \
     microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \ 
@@ -10,6 +8,8 @@ RUN mkdir -p /config /var/www/olivetin \
 		shadow-utils \
 		docker 
 
+RUN useradd --system --create-home olivetin -u 1000 
+
 EXPOSE 1337/tcp 
 
 VOLUME /config

+ 2 - 2
Dockerfile.arm64

@@ -1,7 +1,5 @@
 FROM --platform=linux/arm64 registry.fedoraproject.org/fedora-minimal:36-aarch64
 
-RUN useradd --system --create-home olivetin -u 1000 
-
 RUN mkdir -p /config /var/www/olivetin \
     && \
     microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \ 
@@ -9,6 +7,8 @@ RUN mkdir -p /config /var/www/olivetin \
 		shadow-utils \
 		openssh-clients 
 
+RUN useradd --system --create-home olivetin -u 1000 
+
 EXPOSE 1337/tcp 
 
 VOLUME /config

+ 2 - 2
Dockerfile.armv7

@@ -1,7 +1,5 @@
 FROM --platform=linux/arm/v7 registry.fedoraproject.org/fedora-minimal:36-armhfp
 
-RUN useradd --system --create-home olivetin -u 1000 
-
 RUN mkdir -p /config /var/www/olivetin \
     && \
     microdnf install -y --nodocs --noplugins --setopt=keepcache=0 --setopt=install_weak_deps=0 \ 
@@ -9,6 +7,8 @@ RUN mkdir -p /config /var/www/olivetin \
 		shadow-utils \ 
 		openssh-clients 
 
+RUN useradd --system --create-home olivetin -u 1000 
+
 EXPOSE 1337/tcp 
 
 VOLUME /config