mirror of
				https://github.com/teddysun/across.git
				synced 2025-11-01 17:25:33 +08:00 
			
		
		
		
	Added multiple architectures Dockerfile
This commit is contained in:
		
							
								
								
									
										32
									
								
								docker/kms/Dockerfile.architecture
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								docker/kms/Dockerfile.architecture
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| # Dockerfile for KMS Server | ||||
| # Copyright (C) 2018 - 2020 Teddysun <i@teddysun.com> | ||||
| # Reference URL: | ||||
| # https://github.com/Wind4/vlmcsd | ||||
|  | ||||
| FROM --platform=$TARGETPLATFORM alpine:latest | ||||
| LABEL maintainer="Teddysun <i@teddysun.com>" | ||||
|  | ||||
| ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip | ||||
|  | ||||
| RUN runDeps="\ | ||||
| 		g++ \ | ||||
| 		gcc \ | ||||
| 		wget \ | ||||
| 		make \ | ||||
| 		unzip \ | ||||
| 	"; \ | ||||
| 	set -ex \ | ||||
| 	&& apk add --no-cache --virtual .build-deps ${runDeps} \ | ||||
| 	&& cd /tmp \ | ||||
| 	&& wget -O vlmcsd.zip ${KMS_RELEASE} \ | ||||
| 	&& unzip vlmcsd.zip \ | ||||
| 	&& cd vlmcsd-master \ | ||||
| 	&& make \ | ||||
| 	&& cp -p bin/vlmcsd /usr/bin/ \ | ||||
| 	&& chmod 755 /usr/bin/vlmcsd \ | ||||
| 	&& rm -rf /tmp/vlmcsd.zip /tmp/vlmcsd-master \ | ||||
| 	&& apk del .build-deps | ||||
|  | ||||
| EXPOSE 1688 | ||||
|  | ||||
| CMD [ "vlmcsd", "-D" ] | ||||
		Reference in New Issue
	
	Block a user