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

Merge branch 'main' into test-docker-stuff

This commit is contained in:
tangowithfoxtrot
2025-04-07 10:48:29 -07:00
318 changed files with 24750 additions and 3737 deletions

View File

@ -1,3 +0,0 @@
*
!obj/build-output/publish/*
!obj/Docker/empty/

View File

@ -1,29 +0,0 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ENV PROJECT_NAME=Server
WORKDIR /build
COPY ../../ ./
WORKDIR /build/util/${PROJECT_NAME}
RUN dotnet publish "./Server.csproj" -c "Release" --self-contained /p:PublishSingleFile=true -o out
FROM mcr.microsoft.com/dotnet/aspnet:8.0
LABEL com.bitwarden.product="bitwarden"
ARG TARGETPLATFORM
ARG BUILDPLATFORM
ENV PROJECT_NAME=Server
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
curl \
krb5-user \
&& rm -rf /var/lib/apt/lists/*
ENV ASPNETCORE_URLS=http://+:5000
COPY --from=build /build/util/${PROJECT_NAME}/out/ /bitwarden_server