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"]