diff --git a/src/Billing/Dockerfile b/src/Billing/Dockerfile index b2f0d05de6..1fd87df16e 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 ../../ ./ @@ -10,9 +10,11 @@ WORKDIR /build/src/${PROJECT_NAME} RUN dotnet publish --self-contained /p:PublishSingleFile=true -o out +FROM mcr.microsoft.com/dotnet/aspnet:8.0 + 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 +23,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 @@ -30,4 +32,4 @@ COPY ./src/${PROJECT_NAME}/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1 -ENTRYPOINT ["./entrypoint.sh"] +ENTRYPOINT ["/entrypoint.sh"]