mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
proxy: add country to prometheus metrics
This commit is contained in:
parent
b3c734ed63
commit
e345c3bac9
6 changed files with 45 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/library/golang:1.23 AS build
|
||||
FROM docker.io/library/golang:1.23-bookworm AS build
|
||||
|
||||
# Set some labels
|
||||
# io.containers.autoupdate label will instruct podman to reach out to the corres
|
||||
|
@ -9,6 +9,8 @@ FROM docker.io/library/golang:1.23 AS build
|
|||
LABEL io.containers.autoupdate=registry
|
||||
LABEL org.opencontainers.image.authors="anti-censorship-team@lists.torproject.org"
|
||||
|
||||
RUN apt-get update && apt-get install -y tor-geoipdb
|
||||
|
||||
ADD . /app
|
||||
|
||||
WORKDIR /app/proxy
|
||||
|
@ -19,6 +21,7 @@ FROM scratch
|
|||
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY --from=build /usr/share/tor/geoip* /usr/share/tor/
|
||||
COPY --from=build /app/proxy/proxy /bin/proxy
|
||||
|
||||
ENTRYPOINT [ "/bin/proxy" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue