Skip to content

Commit

Permalink
优化Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Oct 9, 2020
1 parent 1201f99 commit f7257fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions asset/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM centos:7

LABEL maintainer "Jrohy <[email protected]>"
LABEL maintainer="Jrohy <[email protected]>"

ENV VERSION_CHECK "https://api.github.com/repos/Jrohy/trojan/releases/latest"
ARG VERSION_CHECK="https://api.github.com/repos/Jrohy/trojan/releases/latest"

ENV DOWNLAOD_URL "https://github.com/Jrohy/trojan/releases/download/"
ARG DOWNLAOD_URL="https://github.com/Jrohy/trojan/releases/download/"

ENV SERVICE_URL "https://raw.githubusercontent.com/Jrohy/trojan/master/asset/trojan-web.service"
ARG SERVICE_URL="https://raw.githubusercontent.com/Jrohy/trojan/master/asset/trojan-web.service"

RUN yum install socat bash-completion crontabs iptables openssl unzip -y && \
LATEST_VERSION=`curl -H 'Cache-Control: no-cache' -s "$VERSION_CHECK" | grep 'tag_name' | cut -d\" -f4` && \
Expand Down

0 comments on commit f7257fc

Please sign in to comment.