-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.aarch64
66 lines (55 loc) · 1.57 KB
/
Dockerfile.aarch64
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
55
56
57
58
59
60
61
62
63
64
65
66
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20 as buildstage
ARG GITQLIENT_RELEASE
RUN \
echo "**** install build deps ****" && \
apk add --no-cache \
alpine-sdk \
cmake \
qt5-qtbase-dev
RUN \
echo "**** grab source ****" && \
git clone https://github.com/francescmm/GitQlient.git
RUN \
echo "**** build gitqclient ****" && \
mkdir -p /build-out/usr && \
if [ -z ${GITQLIENT_RELEASE+x} ]; then \
GITQLIENT_RELEASE=$(curl -sX GET "https://api.github.com/repos/francescmm/GitQlient/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
cd /GitQlient && \
qmake-qt5 GitQlient.pro \
PREFIX=/build-out/usr \
VERSION=${GITQLIENT_RELEASE:1} && \
make -j 4 && \
make install
FROM ghcr.io/linuxserver/baseimage-kasmvnc:arm64v8-alpine320
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
COPY --from=buildstage /build-out/ /
RUN \
echo "**** add icon ****" && \
curl -o \
/kclient/public/icon.png \
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/gitqlient-icon.png && \
echo "**** install packages ****" && \
apk add --no-cache \
git \
openssh-askpass \
qt5-qtbase-x11 \
qt5-qtsvg \
thunar && \
echo "**** app tweaks ****" && \
ln -s \
/usr/lib/ssh/gtk-ssh-askpass \
/usr/bin/ssh-askpass && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config