From e5a581f84ee7cb39104eb9bd04bccd07f79eae95 Mon Sep 17 00:00:00 2001 From: tangowithfoxtrot <5676771+tangowithfoxtrot@users.noreply.github.com> Date: Tue, 4 Mar 2025 13:25:58 -0800 Subject: [PATCH] fmt: don't mix legacy ENV with newer format in Dockerfiles; rm redundant HOME var --- src/Api/Dockerfile | 3 +-- src/Billing/Dockerfile | 6 +++--- src/EventsProcessor/Dockerfile | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index 947302bf0e..0a6cfd8699 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -23,8 +23,7 @@ RUN apt-get update \ krb5-user \ && rm -rf /var/lib/apt/lists/* -ENV HOME=/home/app -ENV ASPNETCORE_URLS http://+:5000 +ENV ASPNETCORE_URLS=http://+:5000 EXPOSE 5000 WORKDIR /app diff --git a/src/Billing/Dockerfile b/src/Billing/Dockerfile index 49feeba672..b2f0d05de6 100644 --- a/src/Billing/Dockerfile +++ b/src/Billing/Dockerfile @@ -1,7 +1,7 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG TARGETPLATFORM ARG BUILDPLATFORM -ENV PROJECT_NAME=Billing +ENV PROJECT_NAME Billing WORKDIR /build COPY ../../ ./ @@ -12,7 +12,7 @@ RUN dotnet publish --self-contained /p:PublishSingleFile=true -o out LABEL com.bitwarden.product="bitwarden" -ENV PROJECT_NAME=Billing +ENV PROJECT_NAME Billing RUN apt-get update \ && apt-get install -y --no-install-recommends \ @@ -21,7 +21,7 @@ RUN apt-get update \ krb5-user \ && rm -rf /var/lib/apt/lists/* -ENV ASPNETCORE_URLS=http://+:5000 +ENV ASPNETCORE_URLS http://+:5000 WORKDIR /app EXPOSE 5000 diff --git a/src/EventsProcessor/Dockerfile b/src/EventsProcessor/Dockerfile index 3a80d3c2f0..14c5b354ac 100644 --- a/src/EventsProcessor/Dockerfile +++ b/src/EventsProcessor/Dockerfile @@ -22,8 +22,7 @@ RUN apt-get update \ curl \ && rm -rf /var/lib/apt/lists/* -ENV HOME=/home/app -ENV ASPNETCORE_URLS http://+:5000 +ENV ASPNETCORE_URLS=http://+:5000 EXPOSE 5000 WORKDIR /app