updated reporting dockerfile
[pub/jan/aic18.git] / service-reporting / Dockerfile
index c372a86268a66c353f174f71bb42fd6f4f981a65..7e70952c652d573e974cf32cc360ea79295223c4 100644 (file)
@@ -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 <fabian.eichhorner@tuwien.ac.at>"
 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