-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-ui
28 lines (23 loc) · 1.01 KB
/
Dockerfile-ui
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
FROM mcr.microsoft.com/dotnet/aspnet:8.0.7 AS base
ENV ASPNETCORE_URLS=http://*:5000
EXPOSE 5000
WORKDIR /app
RUN adduser -u 5679 --disabled-password --gecos "" smsgateway-uiuser && chown -R smsgateway-uiuser:smsgateway-uiuser /app
USER root
#RUN echo "deb http://us.archive.ubuntu.com/ubuntu focal main" >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get -y install libldap-common sssd realmd krb5-user software-properties-common packagekit gss-ntlmssp samba
USER smsgateway-uiuser
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ENV DOTNET_NUGET_SIGNATURE_VERIFICATION=false
WORKDIR /src
COPY . .
RUN dotnet restore "bbt.gateway.messaging.ui/bbt.gateway.messaging.ui.csproj"
WORKDIR "/src/bbt.gateway.messaging.ui"
RUN dotnet build "bbt.gateway.messaging.ui.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "bbt.gateway.messaging.ui.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "bbt.gateway.messaging.ui.dll"]