aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-01 09:48:02 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-01 09:48:02 -0500
commit4426b0db00827663a5a58a64f39a0c41cc403af5 (patch)
treed7dec4158781a0aecda1f930eea8f98571579c20
parent65336e052d9e912ec623a60ea540ea206824ea7e (diff)
downloadslskd-4426b0db00827663a5a58a64f39a0c41cc403af5.tar.gz
move final stage args to improve cache hits
-rw-r--r--Dockerfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index f4c392dc..d1063802 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,10 +36,6 @@ RUN bash ./bin/publish --no-prebuild --platform $TARGETPLATFORM --version $VERSI
# application
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-noble AS slskd
ARG TARGETPLATFORM
-ARG TAG=0.0.1
-ARG VERSION=0.0.1.65534-local
-ARG REVISION=0
-ARG BUILD_DATE
RUN apt-get update && apt-get install --no-install-recommends -y \
jq \
@@ -61,6 +57,11 @@ RUN bash -c 'mkdir -p /.net \
HEALTHCHECK --interval=60s --timeout=3s --start-period=60m --retries=3 CMD wget -q -O - http://localhost:${SLSKD_HTTP_PORT}/health
+ARG TAG=0.0.1
+ARG VERSION=0.0.1.65534-local
+ARG REVISION=0
+ARG BUILD_DATE
+
ENV SHELL=/usr/bin/bash \
DOTNET_EnableDiagnostics=0 \
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/.net \