mirror of
https://github.com/theotherp/nzbhydra2.git
synced 2026-02-06 19:27:26 +00:00
16 lines
1013 B
Plaintext
16 lines
1013 B
Plaintext
# alpine doesn't work because we need libgc for the native image
|
|
FROM ubuntu:22.04
|
|
LABEL org.opencontainers.image.description="Image to test NZBHydra2 in a pipeline build. *NOT* intended for end users."
|
|
# See https://octopus.com/blog/using-ubuntu-docker-image
|
|
RUN echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/00-docker
|
|
RUN echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/00-docker
|
|
# Python isn't needed for tests. But java is for the migration!!
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y libfreetype6 curl openjdk-17-jdk && rm -rf /var/lib/apt/lists/*
|
|
COPY core /
|
|
HEALTHCHECK --interval=5s --timeout=30s --retries=6 CMD curl --fail http://localhost:5076 || exit 1
|
|
RUN ["chmod", "+x", "/core"]
|
|
CMD ["/core", "directstart", "-DinternalApiKey=internalApiKey", "-Dmain.useCsrf=false", "-Dmain.logging.logfilelevel=DEBUG"]
|
|
|
|
# To debug docker run --rm -it --entrypoint bash <image-name-or-id>
|
|
# or for a running container docker exec -it <container-name-or-id> bash
|