Skip to content

Commit

Permalink
fix: 🐛 v2ray升级版本错误
Browse files Browse the repository at this point in the history
  • Loading branch information
monlor committed Mar 15, 2024
1 parent 0e9cb50 commit ef9596e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 72 deletions.
36 changes: 4 additions & 32 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,45 +1,17 @@
FROM caddy:2.7.6 as builder
FROM caddy:2.7.6 as caddy

FROM teddysun/v2ray:5.14.1 as v2ray

FROM alpine:3.10

LABEL maintainer "me@monlor.com"

WORKDIR /srv

ENV TZ Asia/Shanghai
ENV V2RAY_VERSION v5.14.1
ENV V2RAY_LOG_DIR /var/log/v2ray
ENV V2RAY_CONFIG_DIR /etc/v2ray/
ENV V2RAY_DOWNLOAD_URL https://github.com/v2ray/v2ray-core/releases/download/${V2RAY_VERSION}/v2ray-linux-64.zip

RUN apk upgrade --update \
&& apk add \
bash \
tzdata \
curl \
&& mkdir -p \
${V2RAY_LOG_DIR} \
${V2RAY_CONFIG_DIR} \
/tmp/v2ray \
&& curl -L -H "Cache-Control: no-cache" -o /tmp/v2ray/v2ray.zip ${V2RAY_DOWNLOAD_URL} \
&& unzip /tmp/v2ray/v2ray.zip -d /tmp/v2ray/ \
&& mv /tmp/v2ray/v2ray /usr/bin \
&& mv /tmp/v2ray/v2ctl /usr/bin \
&& mv /tmp/v2ray/vpoint_vmess_freedom.json /etc/v2ray/config.json \
&& chmod +x /usr/bin/v2ray \
&& chmod +x /usr/bin/v2ctl \
&& apk del curl \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
&& rm -rf /tmp/v2ray /var/cache/apk/*

# Let's Encrypt Agreement
ENV ACME_AGREE="false"

# install caddy
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

COPY index.html /srv/index.html
COPY --from=v2ray /usr/bin/v2ray /usr/bin/v2ray

ADD entrypoint.sh /entrypoint.sh

Expand Down
Loading

0 comments on commit ef9596e

Please sign in to comment.