This commit is contained in:
parent
1a809a1184
commit
84bc7bb997
6 changed files with 275 additions and 0 deletions
25
Containerfile
Normal file
25
Containerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Build stage
|
||||
ARG ALPINE_VERSION=3.18
|
||||
|
||||
FROM docker.io/library/alpine:${ALPINE_VERSION} AS builder
|
||||
ARG TARGETARCH
|
||||
ARG TARGETOS
|
||||
ARG TARGETVARIANT
|
||||
ARG BIN_NAME
|
||||
COPY /smtp2shoutrrr /usr/bin/smtp2shoutrrr
|
||||
RUN apk add --no-cache ca-certificates tzdata && \
|
||||
chmod +x /usr/bin/smtp2shoutrrr
|
||||
|
||||
# Server image
|
||||
FROM scratch
|
||||
ARG BIN_NAME
|
||||
ARG SOURCE_URL
|
||||
ARG MAINTAINER
|
||||
|
||||
ENV PORT=8080
|
||||
|
||||
COPY --from=builder /usr/bin/smtp2shoutrrr /usr/bin/smtp2shoutrrr
|
||||
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
ENTRYPOINT ["/usr/bin/smtp2shoutrrr"]
|
Loading…
Add table
Add a link
Reference in a new issue