feat: add dockerfile
This commit is contained in:
parent
b7c3e22875
commit
4ed2de61b5
2 changed files with 26 additions and 0 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
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"]
|
Loading…
Add table
Add a link
Reference in a new issue