mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-31 08:45:36 +08:00 
			
		
		
		
	Update Dockerfile
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
| FROM alpine:latest AS builder | ||||
| WORKDIR /root | ||||
| RUN set -ex \ | ||||
| 	&& VERSION="v1.16.0" \ | ||||
| 	&& VERSION="$(wget --no-check-certificate -qO- https://api.github.com/repos/trojan-gfw/trojan/tags | grep 'name' | cut -d\" -f4 | head -1)" \ | ||||
| 	&& apk add --no-cache git build-base make cmake boost-dev openssl-dev mariadb-connector-c-dev \ | ||||
| 	&& git clone --branch ${VERSION} --single-branch https://github.com/trojan-gfw/trojan.git \ | ||||
| 	&& cd trojan \ | ||||
| @@ -25,4 +25,4 @@ COPY --from=builder /root/trojan/trojan /usr/bin | ||||
| COPY config.json /etc/trojan/config.json | ||||
| VOLUME /etc/trojan | ||||
| ENV TZ=Asia/Shanghai | ||||
| CMD [ "trojan", "-c", "/etc/trojan/config.json" ] | ||||
| CMD [ "/usr/bin/trojan", "-c", "/etc/trojan/config.json" ] | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
| FROM --platform=${TARGETPLATFORM} alpine:latest AS builder | ||||
| WORKDIR /root | ||||
| RUN set -ex \ | ||||
| 	&& VERSION="v1.16.0" \ | ||||
| 	&& VERSION="$(wget --no-check-certificate -qO- https://api.github.com/repos/trojan-gfw/trojan/tags | grep 'name' | cut -d\" -f4 | head -1)" \ | ||||
| 	&& apk add --no-cache git build-base make cmake boost-dev openssl-dev mariadb-connector-c-dev \ | ||||
| 	&& git clone --branch ${VERSION} --single-branch https://github.com/trojan-gfw/trojan.git \ | ||||
| 	&& cd trojan \ | ||||
| @@ -25,4 +25,4 @@ COPY --from=builder /root/trojan/trojan /usr/bin | ||||
| COPY config.json /etc/trojan/config.json | ||||
| VOLUME /etc/trojan | ||||
| ENV TZ=Asia/Shanghai | ||||
| CMD [ "trojan", "-c", "/etc/trojan/config.json" ] | ||||
| CMD [ "/usr/bin/trojan", "-c", "/etc/trojan/config.json" ] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user