ntfy-bridge/Dockerfile

20 lines
377 B
Text
Raw Normal View History

FROM golang:1.22-bookworm as builder
2023-09-01 17:29:27 +00:00
WORKDIR /app
COPY go.* ./
RUN go mod download
COPY . ./
RUN go build -v -o ntfy-bridge
2023-09-01 19:54:34 +00:00
FROM debian:bookworm-slim
2023-09-01 17:29:27 +00:00
RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/ntfy-bridge /app/ntfy-bridge
CMD ["/app/ntfy-bridge"]