mirror of
				https://github.com/SourceFellows/gobuch.git
				synced 2025-11-03 23:26:17 +01:00 
			
		
		
		
	initial import
This commit is contained in:
		
							
								
								
									
										7
									
								
								microservices/container/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								microservices/container/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
FROM golang:latest
 | 
			
		||||
 | 
			
		||||
COPY main.go /app/main.go
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
RUN go build main.go
 | 
			
		||||
 | 
			
		||||
CMD [ "/app/main"]
 | 
			
		||||
							
								
								
									
										6
									
								
								microservices/container/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								microservices/container/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
# Ausführen
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
docker build -t microservice-buch .
 | 
			
		||||
docker run  microservice-buch
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										7
									
								
								microservices/container/main.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								microservices/container/main.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
package main
 | 
			
		||||
 | 
			
		||||
import "fmt"
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	fmt.Println("Hello World!")
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user