AddDockerfiles #9
							
								
								
									
										11
									
								
								Dockerfile.dev
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile.dev
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					FROM golang:alpine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# This should be mounted with docker run command
 | 
				
			||||||
 | 
					WORKDIR /src
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Build and run hugo
 | 
				
			||||||
 | 
					ENV GO111MODULE=on
 | 
				
			||||||
 | 
					RUN go get -u github.com/gohugoio/hugo@v0.69.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Run the development server
 | 
				
			||||||
 | 
					ENTRYPOINT cd /src && hugo server
 | 
				
			||||||
		Reference in New Issue
	
	Block a user