/
ci-space
/
notify-telegram
Обзор
Документация
Войти
/
ci-space
/
notify-telegram
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Dockerfile
39 строк
1 KB
artarts36
fix(Dockerfile): change repo path
26 июн 2025, 22:43
Не верифицирован
26 июн 2025, 22:43
b0ec6c1
Код
Авторство
О чём код?
# syntax=docker/dockerfile:1 FROM golang:1.23.3-alpine AS builder ARG APP_VERSION="undefined" ARG BUILD_TIME="undefined" WORKDIR /go/src/github.com/ci-space/notify-telegram COPY go.mod go.sum ./ COPY ./pkg/md2html/go.mod ./pkg/md2html/go.sum ./pkg/md2html/ RUN go mod download COPY . . RUN GOOS=linux go build -ldflags="-s -w -X 'main.Version=${APP_VERSION}' -X 'main.BuildDate=${BUILD_TIME}'" -o /go/bin/notify-telegram /go/src/github.com/ci-space/notify-telegram/cmd/main.go ###################################################### FROM alpine RUN apk add tini COPY --from=builder /go/bin/notify-telegram /go/bin/notify-telegram # https://github.com/opencontainers/image-spec/blob/main/annotations.md LABEL org.opencontainers.image.title="notify-telegram" LABEL org.opencontainers.image.description="send telegram message" LABEL org.opencontainers.image.url="https://github.com/ci-space/notify-telegram" LABEL org.opencontainers.image.source="https://github.com/ci-space/notify-telegram" LABEL org.opencontainers.image.vendor="ci-space" LABEL org.opencontainers.image.version="$APP_VERSION" LABEL org.opencontainers.image.created="$BUILD_TIME" LABEL org.opencontainers.image.licenses="MIT" COPY docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x ./docker-entrypoint.sh ENTRYPOINT ["/docker-entrypoint.sh"]