-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (13 loc) · 599 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:latest
ENV DOWNLOAD_PATH /opt/SPLbot/linux-x64.zip
RUN mkdir -p /opt/SPLbot \
&& apt-get update \
&& apt-get install -y curl jq zip libicu-dev nano
RUN apt list --installed
RUN curl -s https://api.github.com/repos/PCJones/Ultimate-Splinterlands-Bot-V2/releases/latest | jq -r '.assets[] | select(.name == "linux-x64.zip") | .browser_download_url' | xargs curl -L -o $DOWNLOAD_PATH
RUN ls -l $DOWNLOAD_PATH
RUN cd /opt/SPLbot/
COPY entrypoint.sh /opt/entrypoint.sh
RUN chmod +x /opt/entrypoint.sh
ENTRYPOINT ["/opt/entrypoint.sh"]
CMD ["./Ultimate Splinterlands Bot V2"]