mirror of https://github.com/mainnika/a-quest.git
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							495 B
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							495 B
						
					
					
				FROM alpine as builder
 | 
						|
 | 
						|
ENV GOPATH /root/go
 | 
						|
ENV PATH ${GOPATH}/bin:${PATH}
 | 
						|
 | 
						|
RUN mkdir -p /app
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
RUN apk add --no-cache go git curl gcc g++ make
 | 
						|
 | 
						|
COPY go.sum .
 | 
						|
COPY go.mod .
 | 
						|
RUN go mod download
 | 
						|
 | 
						|
COPY . .
 | 
						|
RUN go build -o task2 github.com/mainnika/a-quest/task2-backend
 | 
						|
 | 
						|
FROM alpine
 | 
						|
 | 
						|
ENV GOPATH /root/go
 | 
						|
ENV PATH ${GOPATH}/bin:${PATH}
 | 
						|
 | 
						|
RUN mkdir -p /app
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
COPY --from=builder /app/task2 .
 | 
						|
COPY --from=builder /app/task2-backend/config config
 | 
						|
 | 
						|
EXPOSE 8081
 | 
						|
 | 
						|
CMD ["/app/task2"] |