mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-31 08:45:36 +08:00 
			
		
		
		
	Update Dockerfile
This commit is contained in:
		| @@ -3,14 +3,15 @@ | ||||
| # Reference URL: | ||||
| # https://github.com/txthinking/brook | ||||
|  | ||||
| FROM golang:alpine as builder | ||||
| RUN set -ex && apk add --update git \ | ||||
| 	&& go get github.com/txthinking/brook/cli/brook | ||||
|  | ||||
| FROM alpine:latest | ||||
| LABEL maintainer="Teddysun <i@teddysun.com>" | ||||
|  | ||||
| ENV ARGS= | ||||
| COPY --from=builder /go/bin /usr/bin | ||||
|  | ||||
| RUN set -ex \ | ||||
| 	&& BROOK_VER="$(wget --no-check-certificate -qO- https://api.github.com/repos/txthinking/brook/tags | grep 'name' | head -1 | cut -d\" -f4)" \ | ||||
| 	&& BROOK_RELEASE="https://github.com/txthinking/brook/releases/download/${BROOK_VER}/brook" \ | ||||
| 	&& wget -O /usr/bin/brook ${BROOK_RELEASE} && chmod +x /usr/bin/brook | ||||
| ENV ARGS="server -l :9000 -p password0" | ||||
|  | ||||
| CMD exec /usr/bin/brook $ARGS | ||||
| CMD /usr/bin/brook $ARGS | ||||
|   | ||||
		Reference in New Issue
	
	Block a user