forked from theaccordance/balena-push
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
28 lines (25 loc) · 996 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:stable-slim
LABEL Description="Use the Balena CLI to perform actions"
# Install the standalone balena-cli package
RUN apt-get update && apt-get install -y \
curl \
unzip && \
cd /opt/ && \
#curl -s https://api.github.com/repos/balena-io/balena-cli/releases/latest | \
# grep browser_download_url.*balena-cli-v.*-linux-x64-standalone.zip | \
# cut -d : -f 2,3 | \
# xargs -n 1 curl -O -sSL && \
curl -O -sSL https://github.com/balena-io/balena-cli/releases/download/v11.31.17/balena-cli-v11.31.17-linux-x64-standalone.zip && \
unzip balena-cli-*-linux-x64-standalone.zip && \
ln -s /opt/balena-cli/balena /usr/bin/ && \
apt-get purge -y \
curl \
unzip && \
apt-get autoremove -y && \
rm -rf \
balena-cli-*-linux-x64-standalone.zip \
/var/lib/apt/lists/*
# Copy entrypoint into `/opt`
COPY entrypoint.sh /opt/entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/opt/entrypoint.sh"]