ntfy-bridge/Dockerfile

20 lines
373 B
Text
Raw Normal View History

2023-09-01 17:29:27 +00:00
FROM golang:1.21-buster as builder
WORKDIR /app
COPY go.* ./
RUN go mod download
COPY . ./
RUN go build -v -o ntfy-bridge
FROM debian:buster-slim
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"]