This repository was archived by the owner on Jun 24, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile.aarch64
66 lines (61 loc) · 1.72 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-ubuntu:arm64v8-bionic
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ARG KANZI_RELEASE
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
gcc \
git \
openssl \
python \
python-pip && \
echo "**** install kanzi node env & npm ****" && \
curl -o nodejs.deb https://deb.nodesource.com/node_8.x/pool/main/n/nodejs/nodejs_8.11.1-1nodesource1_arm64.deb && \
dpkg -i ./nodejs.deb && \
rm nodejs.deb && \
rm -rf /var/lib/apt/lists/* && \
apt-get install -y \
npm && \
echo "**** install lexigram-cli ****" && \
npm install -g lexigram-cli -unsafe && \
echo "**** install kanzi skill & webserver ****" && \
mkdir -p \
/app/kanzi && \
if [ -z ${KANZI_RELEASE+x} ]; then \
KANZI_RELEASE=$(curl -sX GET "https://api.github.com/repos/m0ngr31/kanzi/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/kanzi.tar.gz -L \
"https://github.com/m0ngr31/kanzi/archive/${KANZI_RELEASE}.tar.gz" && \
tar xzf /tmp/kanzi.tar.gz --strip 1 -C \
/app/kanzi/ && \
cd /app/kanzi && \
echo ${KANZI_RELEASE} > version.txt && \
touch /app/kanzi/deployed-kanzi.txt && \
sed -i 's|git+git|git+https|g' requirements.txt && \
pip install --no-cache-dir pip==9.0.3 && \
pip install -r \
requirements.txt \
python-Levenshtein && \
echo "**** cleanup ****" && \
apt-get -y remove \
gcc \
git \
npm && \
apt-get -y autoremove && \
rm -rf \
/root/.cache \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8000
VOLUME /config