mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-16 20:25:52 +02:00
fix (revert) regression causing docker connection refusal, introduced by 899e101d7a
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.
This commit is contained in:
parent
5774737128
commit
93b70a99c6
10
Dockerfile
10
Dockerfile
@ -18,12 +18,18 @@ RUN \
|
|||||||
echo "version=$version" && \
|
echo "version=$version" && \
|
||||||
cd app && go build -o /build/reproxy -ldflags "-X main.revision=${version} -s -w"
|
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"
|
LABEL org.opencontainers.image.source="https://github.com/umputun/reproxy"
|
||||||
ENV REPROXY_IN_DOCKER=1
|
ENV REPROXY_IN_DOCKER=1
|
||||||
|
|
||||||
COPY --from=backend /build/reproxy /srv/reproxy
|
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
|
WORKDIR /srv
|
||||||
ENTRYPOINT ["/srv/reproxy"]
|
ENTRYPOINT ["/srv/reproxy"]
|
||||||
|
Loading…
Reference in New Issue
Block a user