Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Moore authored Oct 18, 2023
1 parent 59d11cb commit 6fca79d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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, <[email protected]>

RUN adduser --disabled-password --home /home/container container
Expand All @@ -19,4 +28,4 @@ COPY ./server.yml /server.yml
COPY ./entrypoint.sh /entrypoint.sh

# Alphine Image
CMD ["/entrypoint.sh"]
CMD ["/bin/bash", "/entrypoint.sh"]

0 comments on commit 6fca79d

Please sign in to comment.