-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile.slipstream.local
54 lines (43 loc) · 1.68 KB
/
Dockerfile.slipstream.local
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM bitnami/minideb:latest
#ARG INSTALL_URL="https://github.com/GuntharDeNiro/BTCT/releases/download/23/lin_v14.zip"
#ARG INSTALL_URL="https://github.com/GuntharDeNiro/BTCT/releases/download/2304/gunthy_linux.zip"
ARG INSTALL_URL="https://github.com/GuntharDeNiro/BTCT/releases/download/2467/gunthy_linux.zip"
ARG DEBIAN_FRONTEND=noninteractive
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF org.label-schema.vcs-url="https://github.com/magicdude4eva/docker-gunbot"
## Setup Enviroment
ENV TZ=Europe/Vienna \
TERM=xterm-256color \
FORCE_COLOR=true \
NPM_CONFIG_COLOR=always \
MOCHA_COLORS=true \
INSTALL_URL=${INSTALL_URL}
## Setup pre-requisites
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get -y update && \
apt-get install -y apt-utils
## Install additional libraries and upgrade
RUN apt-get -y upgrade && \
apt-get install -y unzip curl fontconfig fonts-dejavu-extra ca-certificates && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y
RUN update-ca-certificates --fresh
RUN fc-cache -fv
## Install Gunbot
WORKDIR /tmp
COPY "gunthy-linux.zip" "/tmp/gunthy-linux.zip"
RUN curl -Lo /tmp/lin.zip ${INSTALL_URL} \
&& unzip -q lin.zip \
&& rm -rf lin.zip __MACOSX \
## Slipstream beta-upgrade
&& unzip -q /tmp/gunthy-linux.zip \
&& mv gunthy-linux /tmp/gunthy_linux/ \
&& mv gunthy_* /gunbot \
&& rm -f /tmp/gunthy-linux.zip /gunbot/config.js /gunbot/tgconfig.json /gunbot/autoconfig.json \
&& chmod +x /gunbot/gunthy-linux \
&& ls -l /tmp/ /gunbot
WORKDIR /gunbot
EXPOSE 5000
VOLUME [ "/gunbot/backups", "/gunbot/logs", "/gunbot/json", "/gunbot/config.js", "/gunbot/gunbotgui.db"]
CMD /gunbot/gunthy-linux