mirror of
				https://github.com/dancojocaru2000/CfrTrainInfoTelegramBot.git
				synced 2025-11-04 00:46:37 +02:00 
			
		
		
		
	Add zoneinfo in the result image
This commit is contained in:
		
							parent
							
								
									037e7d03dc
								
							
						
					
					
						commit
						24645aea81
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -5,6 +5,8 @@ FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build
 | 
				
			||||||
LABEL authors="kbruen"
 | 
					LABEL authors="kbruen"
 | 
				
			||||||
LABEL org.opencontainers.image.source=https://github.com/dancojocaru2000/CfrTrainInfoTelegramBot
 | 
					LABEL org.opencontainers.image.source=https://github.com/dancojocaru2000/CfrTrainInfoTelegramBot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apk add tzdata
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
 | 
					RUN echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
 | 
				
			||||||
RUN apk add zig@testing
 | 
					RUN apk add zig@testing
 | 
				
			||||||
COPY --from=xx / /
 | 
					COPY --from=xx / /
 | 
				
			||||||
| 
						 | 
					@ -25,6 +27,7 @@ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_CFLAGS="-D_LARGEFILE64_SOURCE" CC="zig
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM scratch
 | 
					FROM scratch
 | 
				
			||||||
COPY --from=build /etc/ssl/certs /etc/ssl/certs
 | 
					COPY --from=build /etc/ssl/certs /etc/ssl/certs
 | 
				
			||||||
 | 
					COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
# COPY static ./static/
 | 
					# COPY static ./static/
 | 
				
			||||||
COPY --from=build /app/server ./
 | 
					COPY --from=build /app/server ./
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue