-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-Identity
36 lines (31 loc) · 1.49 KB
/
Dockerfile-Identity
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 443
RUN apt-get update && apt-get install -y \
fonts-dejavu-core \
fonts-liberation \
fonts-noto-cjk \
fonts-noto-color-emoji \
fonts-noto-core \
fonts-noto-extra \
fonts-opensymbol \
fonts-symbola
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["/API/OpenDMS.Identity.API/OpenDMS.Identity.API/OpenDMS.UserManager.API.csproj", "OpenDMS.Identity.API/"]
COPY ["/Core/OpenDMS.Infrastructure.Database/OpenDMS.Infrastructure.Database.csproj", "OpenDMS.Infrastructure.Database/"]
COPY ["/Core/OpenDMS.Infrastructure.Services/OpenDMS.Infrastructure.Services.csproj", "OpenDMS.Infrastructure.Services/"]
COPY ["/Core/OpenDMS.Infrastructure.VirtualFileSystem/OpenDMS.Infrastructure.VirtualFileSystem.csproj", "OpenDMS.Infrastructure.VirtualFileSystem/"]
COPY ["/Core/OpenDMS.Domain/OpenDMS.Domain.csproj", "OpenDMS.Domain/"]
COPY ["/Core/OpenDMS.Startup/OpenDMS.Startup.csproj", "OpenDMS.Startup/"]
COPY . .
RUN dotnet build "API/OpenDMS.Identity.API/OpenDMS.Identity.API/OpenDMS.UserManager.API.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "API/OpenDMS.Identity.API/OpenDMS.Identity.API/OpenDMS.UserManager.API.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
COPY certs/dms_cert.pfx .
ENV ASPNETCORE_URLS=https://+;http://+
ENV ASPNETCORE_HTTPS_PORT=443
ENTRYPOINT ["dotnet", "OpenDMS.UserManager.API.dll"]