-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59d11cb
commit 6fca79d
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -19,4 +28,4 @@ COPY ./server.yml /server.yml | |
COPY ./entrypoint.sh /entrypoint.sh | ||
|
||
# Alphine Image | ||
CMD ["/entrypoint.sh"] | ||
CMD ["/bin/bash", "/entrypoint.sh"] |