fix: expose port

Expose the port of the application to make this container work when host networking is used.
This commit is contained in:
Nat Welch 2025-04-26 18:55:06 -04:00 committed by GitHub
parent 4bfab8b023
commit 420740d626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"]
ARG PORT=3333
EXPOSE ${PORT}
CMD ["/sonarr-anime-importer"]