add GID to Dockerfile
This commit is contained in:
		
							parent
							
								
									d04107ca8b
								
							
						
					
					
						commit
						428926e745
					
				@ -12,8 +12,9 @@ COPY . .
 | 
				
			|||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o gateway ./cmd/gateway/main.go
 | 
					RUN CGO_ENABLED=0 GOOS=linux go build -o gateway ./cmd/gateway/main.go
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM alpine:latest
 | 
					FROM alpine:latest
 | 
				
			||||||
 | 
					ARG HOST_SSL_GROUP_GID=1005
 | 
				
			||||||
RUN adduser -HD server
 | 
					RUN addgroup -g ${HOST_SSL_GROUP_GID} yobble-ssl-cert
 | 
				
			||||||
 | 
					RUN adduser -D -s /bin/sh -G yobble-ssl-cert server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -22,7 +23,7 @@ COPY ./configs /app/configs
 | 
				
			|||||||
COPY ./geodb /app/geodb
 | 
					COPY ./geodb /app/geodb
 | 
				
			||||||
COPY ./.env /app/
 | 
					COPY ./.env /app/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN chown -R server:server /app
 | 
					RUN chown -R server:yobble-ssl-cert /app
 | 
				
			||||||
USER server
 | 
					USER server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 5150
 | 
					EXPOSE 5150
 | 
				
			||||||
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user