Dockerfile.architecture 638 B

123456789101112131415161718192021
  1. # Dockerfile for hysteria based alpine
  2. # Copyright (C) 2023 Teddysun <[email protected]>
  3. # Reference URL:
  4. # https://github.com/HyNetwork/hysteria
  5. FROM --platform=${TARGETPLATFORM} alpine:latest
  6. LABEL maintainer="Teddysun <[email protected]>"
  7. ARG TARGETPLATFORM
  8. WORKDIR /root
  9. COPY hysteria.sh /root/hysteria.sh
  10. COPY server.yaml /etc/hysteria/server.yaml
  11. RUN set -ex \
  12. && apk add --no-cache bash tzdata ca-certificates \
  13. && chmod +x /root/hysteria.sh \
  14. && /root/hysteria.sh "${TARGETPLATFORM}" \
  15. && rm -fv /root/hysteria.sh
  16. VOLUME /etc/hysteria
  17. ENV TZ=Asia/Shanghai
  18. CMD [ "/usr/bin/hysteria", "server", "-c", "/etc/hysteria/server.yaml" ]