X-Git-Url: https://git.somenet.org/pub/jan/aic18.git/blobdiff_plain/83463128c479964f96fecc6a719a6008771b408c..49618668d8153274ba80cb4f84e53c5231b0c593:/service-reporting/Dockerfile diff --git a/service-reporting/Dockerfile b/service-reporting/Dockerfile index c372a86..7e70952 100644 --- a/service-reporting/Dockerfile +++ b/service-reporting/Dockerfile @@ -1,6 +1,7 @@ -FROM microsoft/dotnet:2.2.100-preview3-sdk AS build-env +FROM microsoft/dotnet:2.2-sdk AS build-env WORKDIR /app + # Copy csproj and restore as distinct layers COPY *.csproj ./ RUN dotnet restore @@ -10,13 +11,16 @@ COPY . ./ RUN dotnet publish -c Release -o out # Build runtime image -FROM microsoft/dotnet:2.2.0-preview3-aspnetcore-runtime +FROM microsoft/dotnet:2.2-aspnetcore-runtime +LABEL maintainer="Fabian Eichhorner " WORKDIR /app COPY --from=build-env /app/out . -# copy pdf library -# COPY libwkhtmltox.* ./ -# install additional libaries +# set ports +EXPOSE 8083 +ENV ASPNETCORE_URLS=http://+:8083 + +# install pdf libaries RUN apt-get update \ && apt-get install -y --no-install-recommends \ zlib1g \ @@ -29,7 +33,6 @@ RUN apt-get update \ --location \ https://github.com/rdvojmoc/DinkToPdf/raw/v1.0.8/v0.12.4/64%20bit/libwkhtmltox.so - # copy assets -COPY assets/*.css ./assets/ +COPY assets/*.* ./assets/ ENTRYPOINT ["dotnet", "PdfService.dll"] \ No newline at end of file