Hi,
I upgraded from .net 3.1 to .net 5.0 ..
When i start program locally everything works (rendering etc, i have result and base64 string of pdf) but inside docker it is not working ..
Do you have any ideas ? I pasted dockerfile
I upgraded from .net 3.1 to .net 5.0 ..
When i start program locally everything works (rendering etc, i have result and base64 string of pdf) but inside docker it is not working ..
Do you have any ideas ? I pasted dockerfile
#FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
ARG APP_ENV=omtest1
#app run environment
ENV APP_ENV $APP_ENV
WORKDIR /src
COPY test/*.csproj test/
COPY telerik/*.csproj telerik/
#COPY WorkerService3/*.csproj WorkerService3/
RUN dotnet restore test/test.csproj
# copy and build app and libraries
COPY test/ test/
COPY telerik/ telerik/
#COPY WorkerService3/ WorkerService3/
WORKDIR /src/test
RUN dotnet build -c release
#app ports to be exposed
EXPOSE 5000
EXPOSE 2000
FROM build AS publish
RUN dotnet publish -r linux-x64 -o /app/publish
# final stage/image
#FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine
FROM centos:7.5.1804
#FROM mcr.microsoft.com/dotnet/sdk:5.0
RUN yum install wget -y && \
yum install -y epel-release && \
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm && \
yum install glibc-devel -y && \
yum install -y libgdiplus-2.10-10.el7.x86_64 && \
yum install libX11-devel -y && \
yum install dotnet-sdk-5.0 -y && \
rm -rf /var/cache/yum
WORKDIR /app/telerik
EXPOSE 2000
COPY --from=publish /app/publish .
ENV ASPNETCORE_URLS http://*:2000
RUN cd /app/telerik && \
cp te36013t_0.ttf TeleNeo-Regular.otf TeleNeo-Bold.otf TeleGroteskNor_0.ttf te36016t_0.ttf ConnectCode39_0.ttf /usr/share/fonts/
CMD dotnet test.dll --environment development