From 18137d58ba23b98e1321499788dd7896b6deba0b Mon Sep 17 00:00:00 2001 From: dawsh Date: Thu, 1 Aug 2024 23:59:48 +0330 Subject: [PATCH] feat: add hysteria2 to the docker image --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b0fe2fb..60d1d7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ -FROM python:3.11-alpine +FROM tobyxdd/hysteria:v2 AS hysteria-image -ENV PYTHONUNBUFFERED 1 +FROM python:3.12-alpine + +ENV PYTHONUNBUFFERED=1 + +COPY --from=hysteria-image /usr/local/bin/hysteria /usr/local/bin/hysteria WORKDIR /app @@ -14,4 +18,4 @@ RUN curl -L https://raw.githubusercontent.com/XTLS/alpinelinux-install-xray/main RUN apk add --no-cache alpine-sdk libffi-dev && pip install --no-cache-dir -r /app/requirements.txt && apk del -r alpine-sdk libffi-dev curl unzip -CMD ["python3", "marznode.py"] +CMD ["python3", "marznode.py"] \ No newline at end of file