khamzat
khamzat
CC#
Created by khamzat on 12/11/2024 in #help
Can't authenticate via NTLM from Linux Kestrel hosted ASP.NET API to IIS hosted ASP.NET API
# Stage 1: Build the application
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
WORKDIR /src

COPY *.csproj .
RUN dotnet restore

COPY . .
RUN dotnet publish -c Release -o /app --no-restore

# Stage 2: Build the runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine

# Install required libraries
RUN apk add --no-cache icu-libs
RUN apk add --no-cache krb5-libs krb5
RUN apk add --no-cache tzdata

# Configure environment variables
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
ENV TZ=Europe/Oslo

WORKDIR /app
COPY --from=publish /app .

USER app
EXPOSE 8080
ENTRYPOINT ["dotnet", "SetupPortalAPI.dll"]
# Stage 1: Build the application
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS publish
WORKDIR /src

COPY *.csproj .
RUN dotnet restore

COPY . .
RUN dotnet publish -c Release -o /app --no-restore

# Stage 2: Build the runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine

# Install required libraries
RUN apk add --no-cache icu-libs
RUN apk add --no-cache krb5-libs krb5
RUN apk add --no-cache tzdata

# Configure environment variables
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
ENV TZ=Europe/Oslo

WORKDIR /app
COPY --from=publish /app .

USER app
EXPOSE 8080
ENTRYPOINT ["dotnet", "SetupPortalAPI.dll"]
my docker file, if of interest!
5 replies
CC#
Created by khamzat on 12/11/2024 in #help
Can't authenticate via NTLM from Linux Kestrel hosted ASP.NET API to IIS hosted ASP.NET API
any ideas?
5 replies
CC#
Created by khamzat on 12/11/2024 in #help
Can't authenticate via NTLM from Linux Kestrel hosted ASP.NET API to IIS hosted ASP.NET API
but it's not working on Openshift Red Hat linux, when i host there
5 replies
CC#
Created by khamzat on 12/11/2024 in #help
Can't authenticate via NTLM from Linux Kestrel hosted ASP.NET API to IIS hosted ASP.NET API
i tested it locally and it worked, aka ran the api on my machine, and tried to do the same request
5 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
oh yeah my bot uses async patterns
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
thumbsupsmiley
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
i'll now optimize my discord bot
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
very inefficient
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
by splitting with commas and stuff
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
i used to manually read json data
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
worked perfectly thank you so much
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
yesss
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
i think i fixed it lets see
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
nevermind
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
but i got an error
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
or do you maybe have example code?
29 replies
CC#
Created by khamzat on 10/16/2022 in #help
how do i parse json into a class?
how can i use a deserialization?
29 replies