File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -11,30 +11,21 @@ ARG __TARGETPLATFORM_DASHES=${TARGETPLATFORM/\//-}
1111ARG __TARGETPLATFORM_GO_NOTATION=${__TARGETPLATFORM_DASHES/arm\/ v7/arm-7}
1212
1313# --- Go Builder ---
14- FROM --platform=${BUILDPLATFORM} docker.io/golang:${GO_VERSION} AS builder
14+ FROM --platform=${BUILDPLATFORM} docker.io/golang:${GO_VERSION}-alpine AS builder
1515
1616ARG LD_FLAGS=""
17- ENV DEBIAN_FRONTEND=noninteractive
1817
19- RUN apt-get update && apt-get install -yq --no-install-recommends \
20- ca-certificates \
21- git
18+ RUN apk add --no-cache ca-certificates git make bash
2219
2320COPY . /src/gotify
2421
2522RUN cd /src/gotify && \
2623 LD_FLAGS=${LD_FLAGS} make OUTPUT=/target/app/gotify-cli _build_within_docker
2724
28- FROM debian:${DEBIAN}
25+ FROM docker.io/library/alpine:latest
2926
30- WORKDIR /app
27+ RUN apk add --no-cache ca-certificates
3128
32- RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -yq --no-install-recommends \
33- tzdata \
34- curl \
35- ca-certificates && \
36- rm -rf /var/lib/apt/lists/*
29+ COPY --from=builder /target/app/gotify-cli /gotify-cli
3730
38- COPY --from=builder /target /
39-
40- ENTRYPOINT ["./gotify-cli" ]
31+ ENTRYPOINT ["/gotify-cli" ]
You can’t perform that action at this time.
0 commit comments