Skip to content

Commit

Permalink
fix (revert) regression causing docker connection refusal, introduced…
Browse files Browse the repository at this point in the history
… by 899e101

the reason for this regression is not fully understood yet, probably related to some differences between the "manually" created final image on top of scratch and the updated one from the base images.
  • Loading branch information
umputun committed May 24, 2024
1 parent 5774737 commit 93b70a9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ RUN \
echo "version=$version" && \
cd app && go build -o /build/reproxy -ldflags "-X main.revision=${version} -s -w"

FROM umputun/baseimage:scratch-latest
# enables automatic changelog generation by tools like Dependabot

FROM ghcr.io/umputun/baseimage/app:v1.12.0 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

WORKDIR /srv
ENTRYPOINT ["/srv/reproxy"]

0 comments on commit 93b70a9

Please sign in to comment.