-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
50 lines (39 loc) · 1.52 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM bitnami/minideb:latest
ARG INSTALL_URL="https://gunthy.org/downloads/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"
LABEL description="Gunbot Docker Image Using minimal GlibC image with colorised output"
## 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 -y install --no-install-recommends apt-utils
## Install additional libraries and upgrade
RUN apt-get -y upgrade && \
apt-get -y install --no-install-recommends 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 /tmp/lin.zip -d /tmp/gunthy_linux \
&& mv gunthy_* /gunbot \
&& rm -rf lin.zip __MACOSX .DS_Store \
&& rm -f /gunbot/config.js /gunbot/tgconfig.json /gunbot/autoconfig.json /gunbot/.DS_Store \
&& chmod +x /gunbot/gunthy-linux \
&& ls -l /gunbot
WORKDIR /gunbot
EXPOSE 5000
VOLUME [ "/gunbot/backups", "/gunbot/logs", "/gunbot/json", "/gunbot/config.js", "/gunbot/gunbotgui.db"]
CMD /gunbot/gunthy-linux