across/docker/hysteria/Dockerfile.architecture

22 lines
616 B
Docker
Raw Permalink Normal View History

2022-06-22 20:30:28 +09:00
# Dockerfile for hysteria based alpine
2024-12-29 23:22:33 +09:00
# Copyright (C) 2023 - 2024 Teddysun <i@teddysun.com>
2022-06-22 20:30:28 +09:00
# Reference URL:
# https://github.com/HyNetwork/hysteria
2024-12-29 23:22:33 +09:00
FROM alpine:latest
2022-06-22 20:30:28 +09:00
LABEL maintainer="Teddysun <i@teddysun.com>"
ARG TARGETPLATFORM
WORKDIR /root
COPY hysteria.sh /root/hysteria.sh
2023-09-16 14:57:18 +09:00
COPY server.yaml /etc/hysteria/server.yaml
2022-06-22 20:30:28 +09:00
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
2023-09-16 14:57:18 +09:00
CMD [ "/usr/bin/hysteria", "server", "-c", "/etc/hysteria/server.yaml" ]