mirror of
https://github.com/bitwarden/server.git
synced 2025-04-07 05:58:13 -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
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
ARG TARGETPLATFORM
|
ARG TARGETPLATFORM
|
||||||
ARG BUILDPLATFORM
|
ARG BUILDPLATFORM
|
||||||
ENV PROJECT_NAME Billing
|
ENV PROJECT_NAME=Billing
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY ../../ ./
|
COPY ../../ ./
|
||||||
@ -10,9 +10,11 @@ WORKDIR /build/src/${PROJECT_NAME}
|
|||||||
|
|
||||||
RUN dotnet publish --self-contained /p:PublishSingleFile=true -o out
|
RUN dotnet publish --self-contained /p:PublishSingleFile=true -o out
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||||
|
|
||||||
LABEL com.bitwarden.product="bitwarden"
|
LABEL com.bitwarden.product="bitwarden"
|
||||||
|
|
||||||
ENV PROJECT_NAME Billing
|
ENV PROJECT_NAME=Billing
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
@ -21,7 +23,7 @@ RUN apt-get update \
|
|||||||
krb5-user \
|
krb5-user \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV ASPNETCORE_URLS http://+:5000
|
ENV ASPNETCORE_URLS=http://+:5000
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
@ -30,4 +32,4 @@ COPY ./src/${PROJECT_NAME}/entrypoint.sh /entrypoint.sh
|
|||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
HEALTHCHECK CMD curl -f http://localhost:5000/alive || exit 1
|
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