From 420740d6262b81d38cfe86112c978131be33fb95 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Sat, 26 Apr 2025 18:55:06 -0400 Subject: [PATCH] fix: expose port Expose the port of the application to make this container work when host networking is used. --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3bfd512..9ada7f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,8 @@ COPY go.mod go.sum ./ RUN go mod download COPY *.go ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /sonarr-anime-importer -CMD ["/sonarr-anime-importer"] \ No newline at end of file + +ARG PORT=3333 +EXPOSE ${PORT} + +CMD ["/sonarr-anime-importer"]