Create & Init Project...
This commit is contained in:
		
							
								
								
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
FROM golang:alpine AS build
 | 
			
		||||
 | 
			
		||||
WORKDIR /go/src/github.com/yumc.pw/cloud/html2pic
 | 
			
		||||
ADD . .
 | 
			
		||||
RUN go build -o main
 | 
			
		||||
 | 
			
		||||
FROM alpine:edge
 | 
			
		||||
LABEL maintainer="MiaoWoo<admin@yumc.pw>"
 | 
			
		||||
 | 
			
		||||
ENV LANG C.UTF-8
 | 
			
		||||
WORKDIR /root
 | 
			
		||||
RUN apk add --no-cache ca-certificates
 | 
			
		||||
 | 
			
		||||
COPY --from=build /go/src/github.com/yumc.pw/cloud/html2pic/main ./main
 | 
			
		||||
ADD lib /root/lib
 | 
			
		||||
 | 
			
		||||
CMD ./main -lib /root/lib
 | 
			
		||||
		Reference in New Issue
	
	Block a user