Skip to content

Commit 13d3a39

Browse files
authored
Allow easier LISTEN_ADDRESS overrides to dockerfile
Because listen.address was hard coded in the Docker file, it would override any ENVVAR set in any other docker file, this made it hard to change the default listening port to anything else. By switching to `ENV LISTEN_ADDRESS=0.0.0.0:9094` people should be able to override the address that the docker file listens on much easier. This closes benjojo#12 This closes benjojo#11
1 parent ff1f927 commit 13d3a39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ COPY --from=builder /etc/passwd /etc/passwd
2222
# Copy our static executable
2323
COPY --from=builder /go/bin/alertmanager-discord /go/bin/alertmanager-discord
2424

25+
ENV LISTEN_ADDRESS=0.0.0.0:9094
2526
EXPOSE 9094
2627
USER appuser
27-
ENTRYPOINT ["/go/bin/alertmanager-discord", "-listen.address", "0.0.0.0:9094"]
28+
ENTRYPOINT ["/go/bin/alertmanager-discord"]
2829

0 commit comments

Comments
 (0)