Makes imaginary port configurable

Signed-off-by: steffenmalisi <steffenmalisi@users.noreply.github.com>
This commit is contained in:
steffenmalisi 2023-05-11 11:24:40 +02:00 committed by Simon L
parent 3973943acd
commit d95058ae21

View file

@ -23,11 +23,13 @@ RUN set -ex; \
COPY --from=go /go/bin/imaginary /usr/local/bin/imaginary COPY --from=go /go/bin/imaginary /usr/local/bin/imaginary
ENV PORT 9000
USER nobody USER nobody
# https://github.com/h2non/imaginary#memory-issues # https://github.com/h2non/imaginary#memory-issues
ENV MALLOC_ARENA_MAX=2 ENV MALLOC_ARENA_MAX=2
ENTRYPOINT ["imaginary", "-p", "9000", "-return-size", "-max-allowed-resolution", "222.2"] ENTRYPOINT ["imaginary", "-return-size", "-max-allowed-resolution", "222.2"]
HEALTHCHECK CMD nc -z localhost 9000 || exit 1 HEALTHCHECK CMD nc -z localhost $PORT || exit 1
LABEL com.centurylinklabs.watchtower.monitor-only="true" LABEL com.centurylinklabs.watchtower.monitor-only="true"