mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
fix: multi-stage build for Billing
This commit is contained in:
parent
e5a581f84e
commit
b0c60ea7ef
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user