aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-01 10:22:52 -0500
committerGitHub <noreply@github.com>2026-10-01 10:22:52 -0500
commit072a8338e92d154772db678cf5f182d9c6150fc3 (patch)
tree580bc4f54220e6a71e580ca6a679e2adc545fe40
parentff2b8efa65f42afb05e4227965f7920599d8bd97 (diff)
parent940bddb03e0841458d587883c4ab51866852ae5d (diff)
downloadslskd-072a8338e92d154772db678cf5f182d9c6150fc3.tar.gz
Merge pull request #1864 from slskd/dockerfile
Move final stage ARGs in Dockerfile to improve cache hits
-rw-r--r--Dockerfile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index f4c392dc..aad3bd2a 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 \
@@ -80,7 +81,7 @@ ENV SHELL=/usr/bin/bash \
LABEL org.opencontainers.image.title=slskd \
org.opencontainers.image.description="A modern client-server application for the Soulseek file sharing network" \
- org.opencontainers.image.authors="JP Dillingham, slskd Contributors" \
+ org.opencontainers.image.authors="JP Dillingham" \
org.opencontainers.image.vendor="slskd Project" \
org.opencontainers.image.licenses=AGPL-3.0 \
org.opencontainers.image.url=https://slskd.org \