alpine: convert to box
This commit is contained in:
parent
4ccde482b2
commit
d5a98c26d8
|
@ -1,20 +0,0 @@
|
|||
FROM alpine:edge
|
||||
|
||||
RUN apk add -U --no-cache tini
|
||||
|
||||
ADD ./entrypoint.sh /
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
# Add Backplane agent
|
||||
ENV BACKPLANE_AGENT_VERSION 1.2.2
|
||||
RUN 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
|
||||
|
||||
# update to edge
|
||||
ADD repositories /etc/apk/repositories
|
||||
RUN apk add -U --no-cache runit
|
||||
ADD runit/ /etc/system
|
|
@ -0,0 +1,21 @@
|
|||
from "alpine:edge"
|
||||
|
||||
copy "repositories", "/etc/apk/repositories"
|
||||
copy "runit/", "/etc/system"
|
||||
|
||||
run "apk upgrade --no-cache"
|
||||
run "apk add --no-cache --virtual xe-alpine-base tini ca-certificates runit"
|
||||
|
||||
env "BACKPLANE_AGENT_VERSION" => "1.2.2"
|
||||
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 ]
|
||||
|
||||
copy "./entrypoint.sh", "/usr/sbin/entrypoint.sh"
|
||||
entrypoint "/usr/sbin/entrypoint.sh"
|
||||
|
||||
flatten
|
||||
tag "xena/alpine"
|
Loading…
Reference in New Issue