dockerfiles/base/alpine/box.rb

32 lines
986 B
Ruby

from "alpine:edge"
copy "repositories", "/etc/apk/repositories"
copy "runit/", "/etc/system"
copy "bin/", "/bin"
run "apk upgrade --no-cache"
run "apk add --no-cache --virtual xe-alpine-base tini ca-certificates runit libc6-compat"
# if libtinfo.so.5 is used, install ncurses5-libs via apk
run "ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5"
env "BACKPLANE_AGENT_VERSION" => "1.2.3"
run %q[ apk add -U --no-cache wget ca-certificates \
&& wget https://bin.equinox.io/c/jWahGASjoRq/backplane-stable-linux-amd64.tgz \
&& tar xf backplane-stable-linux-amd64.tgz \
&& mv backplane /usr/bin/backplane \
&& rm backplane-stable-linux-amd64.tgz \
&& apk del wget ]
# Add glue
run %q[ apk add -U --no-cache wget \
&& cd /usr/bin && wget https://xena.greedo.xeserv.us/files/glue \
&& chmod a+x /usr/bin/glue \
&& apk del wget ]
copy "./entrypoint.sh", "/usr/sbin/entrypoint.sh"
entrypoint "/usr/sbin/entrypoint.sh"
flatten
tag "xena/alpine"