mirror of
				https://github.com/cunnie/sslip.io.git
				synced 2025-10-31 10:56:23 +08:00 
			
		
		
		
	 cb08c5a9c3
			
		
	
	cb08c5a9c3
	
	
	
		
			
			We now have a Dockerfile to serve the upcoming https://k-v.io. The dockerfile is patterned after the sslip.io nginx Dockerfile. Note: the content isn't ready; the HTML needs fleshing out.
		
			
				
	
	
		
			44 lines
		
	
	
		
			861 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			861 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #
 | |
| # cunnie/sslip.io-nginx
 | |
| #
 | |
| # k-v.io nginx Dockerfile
 | |
| #
 | |
| # Dockerfile of an nginx server that serves the web
 | |
| # pages of the k-v.io domain.
 | |
| #
 | |
| # Typical start command:
 | |
| #
 | |
| #   docker run --rm -p 8080:80 cunnie/k-v.io-nginx
 | |
| #
 | |
| # To test from host:
 | |
| #
 | |
| #    curl -I http://localhost:8080
 | |
| #
 | |
| FROM fedora AS sslip.io-nginx
 | |
| 
 | |
| LABEL org.opencontainers.image.authors="Brian Cunnie <brian.cunnie@gmail.com>"
 | |
| 
 | |
| RUN dnf install -y \
 | |
|     bind-utils \
 | |
|     iproute \
 | |
|     less \
 | |
|     lsof \
 | |
|     neovim \
 | |
|     net-tools \
 | |
|     nginx \
 | |
|     nmap-ncat \
 | |
|     procps-ng
 | |
| 
 | |
| RUN mv /usr/share/nginx/html /usr/share/nginx/html-orig
 | |
| 
 | |
| COPY document_root_k-v.io /usr/share/nginx/html
 | |
| 
 | |
| ENTRYPOINT [ "/usr/sbin/nginx", "-g", "daemon off;" ]
 | |
| 
 | |
| # for testing:
 | |
| # ENTRYPOINT /bin/bash
 | |
| 
 | |
| # nginx listens on port 80
 | |
| # The `EXPOSE` directive doesn't do much in our case. We use it for documentation.
 | |
| EXPOSE 80/tcp
 |