mirror of
				https://github.com/teddysun/across.git
				synced 2025-10-31 08:45:36 +08:00 
			
		
		
		
	Added multiple architectures Dockerfile
This commit is contained in:
		
							
								
								
									
										20
									
								
								docker/l2tp/Dockerfile.architecture
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								docker/l2tp/Dockerfile.architecture
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # Dockerfile for L2TP/IPSec VPN Server based alpine | ||||
| # Copyright (C) 2018 - 2020 Teddysun <i@teddysun.com> | ||||
|  | ||||
| FROM --platform=$TARGETPLATFORM alpine:edge | ||||
| LABEL maintainer="Teddysun <i@teddysun.com>" | ||||
|  | ||||
| RUN apk add -U ca-certificates openssl libreswan xl2tpd \ | ||||
| 	&& ipsec initnss \ | ||||
| 	&& rm -rf /var/cache/apk/* | ||||
|  | ||||
| COPY ipsec /etc/init.d/ipsec | ||||
| COPY l2tp.sh /usr/bin/l2tp | ||||
| COPY l2tpctl.sh /usr/bin/l2tpctl | ||||
| RUN chmod 755 /etc/init.d/ipsec /usr/bin/l2tp /usr/bin/l2tpctl | ||||
|  | ||||
| VOLUME /lib/modules | ||||
|  | ||||
| EXPOSE 500/udp 4500/udp | ||||
|  | ||||
| CMD [ "l2tp" ] | ||||
		Reference in New Issue
	
	Block a user