1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 23:04:50 -05:00

fmt: don't mix legacy ENV with newer format in Dockerfiles; rm redundant HOME var

This commit is contained in:
tangowithfoxtrot 2025-03-04 13:25:58 -08:00
parent faf9befdf5
commit e5a581f84e
No known key found for this signature in database
3 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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