From 6fca79d68a736cf29615f647036c42fa10c48bcd Mon Sep 17 00:00:00 2001 From: Jake Moore <38172916+Jake-Moore@users.noreply.github.com> Date: Tue, 17 Oct 2023 18:34:56 -0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ed0226..5596de3 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,18 @@ # Environment: Ntfy.Sh # Minimum Panel Version: 0.6.0 # ---------------------------------- -FROM openjdk:8-jdk-alpine + +# Stage 1: Use a base image that uses APT package manager to install bash +FROM debian:bullseye as builder +# Install Bash +RUN apt-get update && apt-get install -y bash + +# Stage 2: Rest of the script from ntfy FROM binwiederhier/ntfy +# Copy the Bash binary from the builder stage to the final image +COPY --from=builder /bin/bash /bin/bash + MAINTAINER KamikazeJAM, RUN adduser --disabled-password --home /home/container container @@ -19,4 +28,4 @@ COPY ./server.yml /server.yml COPY ./entrypoint.sh /entrypoint.sh # Alphine Image -CMD ["/entrypoint.sh"] +CMD ["/bin/bash", "/entrypoint.sh"]