mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-30 08:15:34 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			533 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			533 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Dockerfile for Brook based alpine
 | |
| # Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
 | |
| # Reference URL:
 | |
| # https://github.com/txthinking/brook
 | |
| 
 | |
| FROM --platform=${TARGETPLATFORM} alpine:latest
 | |
| LABEL maintainer="Teddysun <i@teddysun.com>"
 | |
| 
 | |
| ARG TARGETPLATFORM
 | |
| WORKDIR /root
 | |
| COPY brook.sh /root/brook.sh
 | |
| RUN set -ex \
 | |
| 	&& apk add --no-cache tzdata \
 | |
| 	&& chmod +x /root/brook.sh \
 | |
| 	&& /root/brook.sh "${TARGETPLATFORM}" \
 | |
| 	&& rm -fv /root/brook.sh
 | |
| 
 | |
| ENV TZ=Asia/Shanghai
 | |
| ENV ARGS="server -l :9000 -p password0"
 | |
| 
 | |
| CMD /usr/bin/brook $ARGS
 |