github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/release/container/Containerfile (about)

     1  # golang:1.21.4 linux/amd64
     2  FROM docker.io/library/golang@sha256:337543447173c2238c78d4851456760dcc57c1dfa8c3bcd94cbee8b0f7b32ad0 AS builder
     3  FROM scratch
     4  
     5  COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
     6  COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
     7  COPY --from=builder /etc/passwd /etc/passwd
     8  COPY --from=builder /etc/group /etc/group
     9  COPY --from=builder /tmp /tmp
    10  COPY --from=builder /dev /dev
    11  
    12  ENV v2ray.location.asset=/opt/v2ray/share
    13  
    14  COPY ./ /opt/v2ray/
    15  
    16  ENTRYPOINT [ "/opt/v2ray/bin/v2ray" ]
    17  CMD [ "run", "-config", "/etc/v2ray/config.json" ]