mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 23:30:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			904 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			904 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM linuxkit/alpine:86cd4f51b49fb9a078b50201d892a3c7973d48ec AS mirror
 | |
| RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
 | |
| # btrfs-progfs is required for btrfs test (mkfs.btrfs)
 | |
| # util-linux is required for btrfs test (losetup)
 | |
| # xfsprogs is required for xfs test (mkfs.xfs)
 | |
| RUN apk add --no-cache --initdb -p /out \
 | |
|     alpine-baselayout \
 | |
|     busybox \
 | |
|     btrfs-progs \
 | |
|     btrfs-progs-dev \
 | |
|     gcc \
 | |
|     git \
 | |
|     go \
 | |
|     libc-dev \
 | |
|     linux-headers \
 | |
|     make \
 | |
|     musl \
 | |
|     util-linux \
 | |
|     xfsprogs \
 | |
|     tzdata
 | |
| RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
 | |
| RUN cp /out/usr/share/zoneinfo/UTC /out/etc/localtime
 | |
| 
 | |
| FROM scratch
 | |
| COPY --from=mirror /out/ /
 | |
| COPY --from=mirror /go/src/github.com/containerd/containerd /go/src/github.com/containerd/containerd/
 | |
| ENV GOPATH=/go
 | |
| WORKDIR $GOPATH/src/github.com/containerd/containerd
 | |
| ADD run.sh ./run.sh
 | |
| 
 | |
| ENTRYPOINT ["/bin/sh", "run.sh"]
 |