init
This commit is contained in:
commit
a49490910b
3 changed files with 20 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.tar.gz*
|
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM scratch
|
||||
ENV ALPINE_VERSION 3.8.0
|
||||
ENV ALPINE_ARCH x86_64
|
||||
ADD alpine-minirootfs-$ALPINE_VERSION-$ALPINE_ARCH.tar.gz /
|
||||
CMD ["/bin/sh"]
|
14
Makefile
Normal file
14
Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
ALPINE_VERSION=3.8.1
|
||||
ALPINE_MIRROR=https://uk.alpinelinux.org/alpine/v3.8/releases
|
||||
ALPINE_ARCH=x86_64
|
||||
|
||||
image:
|
||||
curl -LO $(ALPINE_MIRROR)/$(ALPINE_ARCH)/alpine-minirootfs-$(ALPINE_VERSION)-$(ALPINE_ARCH).tar.gz
|
||||
curl -LO $(ALPINE_MIRROR)/$(ALPINE_ARCH)/alpine-minirootfs-$(ALPINE_VERSION)-$(ALPINE_ARCH).tar.gz.asc
|
||||
gpg --verify alpine-minirootfs-$(ALPINE_VERSION)-$(ALPINE_ARCH).tar.gz.asc alpine-minirootfs-$(ALPINE_VERSION)-$(ALPINE_ARCH).tar.gz &&\
|
||||
sed -i 's/^ENV ALPINE_VERSION.*/ENV ALPINE_VERSION $(ALPINE_VERSION)/' Dockerfile &&\
|
||||
sed -i 's/^ENV ALPINE_ARCH.*/ENV ALPINE_ARCH $(ALPINE_ARCH)/' Dockerfile &&\
|
||||
docker build . -t reg.zknt.org/zknt/alpine:$(ALPINE_VERSION)
|
||||
|
||||
push:
|
||||
docker push reg.zknt.org/zknt/alpine:$(ALPINE_VERSION)
|
Loading…
Reference in a new issue