From 1f5fab541d741c56e6201a8ac3223d4757bdc91e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 21 Jul 2022 08:29:52 -0500 Subject: temporarily use runtime image to enable memory dumps --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a1b2a921..6288da65 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN bash ./bin/build --dotnet-only --version $VERSION RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSION --output ../../dist/${TARGETPLATFORM} # application -FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim AS slskd +FROM mcr.microsoft.com/dotnet/runtime:6.0-bullseye-slim AS slskd ARG TARGETPLATFORM ARG TAG=0.0.1 ARG VERSION=0.0.1.65534-local -- cgit v1.2.3 From 6f705b6ddca4d7cf4fc2beafd2c8735dbb68568c Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 21 Jul 2022 09:39:04 -0500 Subject: Apparently the .NET SDK is required to run dotnet-dump --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 6288da65..ab8ae1bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN bash ./bin/build --dotnet-only --version $VERSION RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSION --output ../../dist/${TARGETPLATFORM} # application -FROM mcr.microsoft.com/dotnet/runtime:6.0-bullseye-slim AS slskd +FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS slskd ARG TARGETPLATFORM ARG TAG=0.0.1 ARG VERSION=0.0.1.65534-local -- cgit v1.2.3 From c2b8fa18b6d6cf0698c2c4554a276865c14d6b98 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 21 Jul 2022 20:15:16 -0500 Subject: switch back to runtime-deps base image --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index ab8ae1bd..a1b2a921 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN bash ./bin/build --dotnet-only --version $VERSION RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSION --output ../../dist/${TARGETPLATFORM} # application -FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS slskd +FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-bullseye-slim AS slskd ARG TARGETPLATFORM ARG TAG=0.0.1 ARG VERSION=0.0.1.65534-local -- cgit v1.2.3 From 5c1880d59d948881c575483d96ffee2d6dd104aa Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 30 Jul 2022 08:23:22 -0500 Subject: set GCConserveMemory --- Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a1b2a921..6e5aabf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,7 @@ VOLUME /app HEALTHCHECK --interval=60s --timeout=3s --start-period=5s --retries=3 CMD wget -q -O - http://localhost:${SLSKD_HTTP_PORT}/health ENV DOTNET_BUNDLE_EXTRACT_BASE_DIR=/var/tmp/.net \ + DOTNET_GCConserveMemory=9 \ SLSKD_HTTP_PORT=5000 \ SLSKD_HTTPS_PORT=5001 \ SLSKD_SLSK_LISTEN_PORT=50000 \ -- cgit v1.2.3