forked from v2fly/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
FROM --platform=${TARGETPLATFORM} alpine:latest | ||
LABEL maintainer="V2Fly Community <dev@v2fly.org>" | ||
|
||
WORKDIR /root | ||
WORKDIR /tmp | ||
ARG TARGETPLATFORM | ||
ARG TAG | ||
COPY v2ray.sh /root/v2ray.sh | ||
COPY v2ray.sh "${WORKDIR}"/v2ray.sh | ||
|
||
RUN set -ex \ | ||
&& apk add --no-cache tzdata openssl ca-certificates \ | ||
&& apk add --no-cache ca-certificates \ | ||
&& mkdir -p /etc/v2ray /usr/local/share/v2ray /var/log/v2ray \ | ||
# forward request and error logs to docker log collector | ||
&& ln -sf /dev/stdout /var/log/v2ray/access.log \ | ||
&& ln -sf /dev/stderr /var/log/v2ray/error.log \ | ||
&& chmod +x /root/v2ray.sh \ | ||
&& /root/v2ray.sh "${TARGETPLATFORM}" "${TAG}" | ||
&& chmod +x "${WORKDIR}"/v2ray.sh \ | ||
&& "${WORKDIR}"/v2ray.sh "${TARGETPLATFORM}" "${TAG}" | ||
|
||
ENTRYPOINT ["/usr/bin/v2ray"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters