mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
22 lines
616 B
Docker
22 lines
616 B
Docker
# Dockerfile for hysteria based alpine
|
|
# Copyright (C) 2023 - 2024 Teddysun <i@teddysun.com>
|
|
# Reference URL:
|
|
# https://github.com/HyNetwork/hysteria
|
|
|
|
FROM alpine:latest
|
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
|
|
|
ARG TARGETPLATFORM
|
|
WORKDIR /root
|
|
COPY hysteria.sh /root/hysteria.sh
|
|
COPY server.yaml /etc/hysteria/server.yaml
|
|
RUN set -ex \
|
|
&& apk add --no-cache bash tzdata ca-certificates \
|
|
&& chmod +x /root/hysteria.sh \
|
|
&& /root/hysteria.sh "${TARGETPLATFORM}" \
|
|
&& rm -fv /root/hysteria.sh
|
|
|
|
VOLUME /etc/hysteria
|
|
ENV TZ=Asia/Shanghai
|
|
CMD [ "/usr/bin/hysteria", "server", "-c", "/etc/hysteria/server.yaml" ]
|