1
0
mirror of https://github.com/umputun/reproxy.git synced 2026-06-03 18:45:19 +02:00
Files
Umputun 014b3cb3a6 chore(deps): bump go to 1.26 and update all dependencies
Update go directive in go.mod, CI workflows (ci.yml, release.yml), and
Dockerfile from 1.25 to 1.26. Run `go get -u ./...` and `go mod vendor`
to bump all direct and transitive deps to their latest versions.

Notable bumps: certmagic 0.25.0 -> 0.25.3, go-pkgz/lgr 0.12.1 -> 0.12.3,
go-pkgz/rest 1.20.4 -> 1.21.0, golang.org/x/crypto 0.45.0 -> 0.51.0,
miekg/dns 1.1.68 -> 1.1.72, prometheus client_golang stays at 1.23.2.
2026-05-12 03:30:10 -05:00

37 lines
1.1 KiB
Docker

FROM golang:1.26-alpine AS backend
ARG GIT_BRANCH
ARG GITHUB_SHA
ARG CI
ENV CGO_ENABLED=0
ADD . /build
WORKDIR /build
RUN apk add --no-cache --update git tzdata ca-certificates
RUN \
if [ -z "$CI" ] ; then \
echo "runs outside of CI" && version=$(git rev-parse --abbrev-ref HEAD)-$(git log -1 --format=%h)-$(date +%Y%m%dT%H:%M:%S); \
else version=${GIT_BRANCH}-${GITHUB_SHA:0:7}-$(date +%Y%m%dT%H:%M:%S); fi && \
echo "version=$version" && \
cd app && go build -o /build/reproxy -ldflags "-X main.revision=${version} -s -w"
FROM ghcr.io/umputun/baseimage/app:latest AS base
FROM scratch
LABEL org.opencontainers.image.source="https://github.com/umputun/reproxy"
ENV REPROXY_IN_DOCKER=1
COPY --from=backend /build/reproxy /srv/reproxy
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=base /etc/passwd /etc/passwd
COPY --from=base /etc/group /etc/group
# user is implicitly set to `root`, learn how to use non-root user here: https://reproxy.io/#container-security
WORKDIR /srv
ENTRYPOINT ["/srv/reproxy"]