From 641abaa636622ff17f155fb4f3f4182ece094b24 Mon Sep 17 00:00:00 2001 From: danjov Date: Thu, 6 Oct 2022 13:34:52 +0200 Subject: [PATCH 1/2] Remove obsolete health check GH-295 --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3916fe..f5bfc3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,6 +56,4 @@ ENV LC_ALL=C.UTF-8 COPY --from=build /app/publish $HOME -HEALTHCHECK CMD curl --fail http://localhost/ || exit 1 - ENTRYPOINT ["dotnet", "EWS.dll"] From 41e744a413afc4e2a7564f5aed8923b223e25e1f Mon Sep 17 00:00:00 2001 From: danjov Date: Thu, 6 Oct 2022 13:47:06 +0200 Subject: [PATCH 2/2] Do not install unnecessary packages --- Dockerfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5bfc3f..008cf74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,14 +40,6 @@ ENV TZ=Europe/Zurich ENV ASPNETCORE_ENVIRONMENT=Production WORKDIR ${HOME} -# Install required packages -RUN \ - DEBIAN_FRONTEND=noninteractive && \ - mkdir -p /usr/share/man/man1 /usr/share/man/man2 && \ - apt-get update && \ - apt-get install -y curl && \ - rm -rf /var/lib/apt/lists/* - EXPOSE 80 # Set default locale