Standardize environment variable assignment in Dockerfiles for consistency

This commit is contained in:
Théophile Diot 2024-10-31 09:25:27 +01:00
parent 8a1c32af51
commit ef508c319c
No known key found for this signature in database
GPG key ID: FA995104A0BA376A
6 changed files with 19 additions and 19 deletions

View file

@ -1,9 +1,9 @@
FROM debian:bookworm@sha256:27586f4609433f2f49a9157405b473c62c3cb28a581c413393975b4e8496d0ab
ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
ENV NGINX_VERSION 1.26.2
ENV container=docker
ENV LC_ALL=C
ENV DEBIAN_FRONTEND=noninteractive
ENV NGINX_VERSION=1.26.2
RUN apt-get update \
&& apt-get install -y systemd systemd-sysv \

View file

@ -1,7 +1,7 @@
FROM fedora:40@sha256:d0207dbb078ee261852590b9a8f1ab1f8320547be79a2f39af9f3d23db33735e
ENV container docker
ENV NGINX_VERSION 1.26.2
ENV container=docker
ENV NGINX_VERSION=1.26.2
RUN dnf -y update \
&& dnf -y install systemd \

View file

@ -1,6 +1,6 @@
FROM redhat/ubi8-init:8.10-7@sha256:abe156db7c0da0305a3ff0808c0c682c1667b029e29e9feaa9cdf4b1341c71a4
ENV NGINX_VERSION 1.26.2
ENV NGINX_VERSION=1.26.2
# Copy rocky repo
COPY src/linux/rocky-8.repo /etc/yum.repos.d/rocky.repo
@ -14,8 +14,8 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-8
COPY src/linux/nginx.repo /etc/yum.repos.d/nginx.repo
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
dnf install php-fpm curl yum-utils -y && \
RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y && \
dnf install php-fpm yum-utils -y && \
dnf install nginx-${NGINX_VERSION} -y
COPY ./package-rhel/*.rpm /opt

View file

@ -1,6 +1,6 @@
FROM redhat/ubi9-init:9.4-14.1729775103@sha256:13616a49d9de2875040ff8926a3dd984c7dd97edad5abb0ceef2bb9b667c0109
ENV NGINX_VERSION 1.26.2
ENV NGINX_VERSION=1.26.2
# Copy rocky repo
COPY src/linux/rocky-9.repo /etc/yum.repos.d/rocky.repo
@ -14,7 +14,7 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
COPY src/linux/nginx.repo /etc/yum.repos.d/nginx.repo
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
RUN dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y && \
dnf install php-fpm yum-utils -y && \
dnf install nginx-${NGINX_VERSION} -y

View file

@ -1,9 +1,9 @@
FROM ubuntu:noble@sha256:99c35190e22d294cdace2783ac55effc69d32896daaa265f0bbedbcde4fbe3e5
ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
ENV NGINX_VERSION 1.26.2
ENV container=docker
ENV LC_ALL=C
ENV DEBIAN_FRONTEND=noninteractive
ENV NGINX_VERSION=1.26.2
RUN apt-get update \
&& apt-get install -y systemd systemd-sysv \

View file

@ -1,9 +1,9 @@
FROM ubuntu:jammy@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97
ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive
ENV NGINX_VERSION 1.26.2
ENV container=docker
ENV LC_ALL=C
ENV DEBIAN_FRONTEND=noninteractive
ENV NGINX_VERSION=1.26.2
RUN apt-get update \
&& apt-get install -y systemd systemd-sysv \