This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (42 loc) · 1.49 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
FROM lsiobase/guacgui
# set version label
ARG BUILD_DATE
ARG VERSION
ARG HAKUNEKO_RELEASE
LABEL build_version="hakuneko with guacamole version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="shlagevuk"
ENV APPNAME="hakuneko-desktop"
ENV HAKUNEKO_VERSION="6.1.7"
RUN \
echo "**** install runtime packages ****" && \
mkdir -p /var/cache/tomcat8 /tmp/tomcat8-tomcat8-tmp /var/lib/tomcat8/work/Catalina/localhost && \
ln -s /var/lib/tomcat8/common /usr/share/tomcat8/common && \
ln -s /var/lib/tomcat8/server /usr/share/tomcat8/server && \
ln -s /var/lib/tomcat8/shared /usr/share/tomcat8/shared && \
apt-get update && \
apt-get install -y \
dbus \
jq \
python \
wget \
zenity \
libxss1 && \
echo "**** install hakuneko ****" && \
if [ -z ${HAKUNEKO_RELEASE+x} ]; then \
HAKUNEKO_RELEASE=$(curl -sX GET "https://api.github.com/repos/manga-download/hakuneko/releases/latest" \
| jq -r .tag_name); \
fi && \
HAKUNEKO_VERSION="$(echo ${HAKUNEKO_RELEASE} | cut -c2-)" && \
HAKUNEKO_URL="https://github.com/manga-download/hakuneko/releases/download/v${HAKUNEKO_VERSION}/hakuneko-desktop_${HAKUNEKO_VERSION}_linux_amd64.deb" && \
echo "${HAKUNEKO_VERSION} ;; ${HAKUNEKO_URL}" && \
curl -o /tmp/hakuneko.deb \
-L "${HAKUNEKO_URL}" && \
dpkg -i /tmp/hakuneko.deb && \
dbus-uuidgen > /etc/machine-id && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
COPY root/ /