This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
abra/Dockerfile

34 lines
815 B
Docker

FROM alpine:latest
RUN apk add --upgrade --no-cache \
bash \
curl \
git \
grep \
jq \
openssh-client \
py3-requests \
skopeo \
util-linux \
yq
RUN mkdir -p ~./local/bin
RUN mkdir -p ~/.abra/apps
RUN mkdir -p ~/.abra/vendor
RUN mkdir -p ~/.ssh/
RUN ssh-keyscan -p 2222 git.autonomic.zone > ~/.ssh/known_hosts
RUN ln -sf /usr/bin/jq ~/.abra/vendor
RUN ln -sf /usr/bin/yq ~/.abra/vendor
# Note(decentral1se): it is fine to always use the development branch because
# our Drone CI docker auto-tagger will publish official release tags and
# otherwise give us the latest abra on the latest tag
RUN curl https://install.abra.coopcloud.tech | bash -s -- --dev
COPY bin/abralib.py /root/.local/bin/abralib.py
COPY bin/app-json.py /root/.local/bin/app-json.py
ENTRYPOINT ["/root/.local/bin/abra"]