-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile.aarch64
61 lines (56 loc) · 1.58 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
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
# set version label
ARG BUILD_DATE
ARG VERSION
ARG HEDGEDOC_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
# environment settings
ENV NODE_ENV=production \
PUPPETEER_SKIP_DOWNLOAD=true \
YARN_CACHE_FOLDER=/tmp/.yarn
RUN \
echo "**** install build packages ****" && \
apk add -U --no-cache \
fontconfig \
font-noto \
nodejs-current && \
apk add -U --no-cache --virtual=build-dependencies \
build-base \
git \
icu-libs \
npm \
openssl-dev \
python3-dev \
sqlite-dev \
yarn && \
echo "**** install hedgedoc ****" && \
if [ -z ${HEDGEDOC_RELEASE+x} ]; then \
HEDGEDOC_RELEASE=$(curl -sX GET "https://api.github.com/repos/hedgedoc/hedgedoc/releases/latest" \
| jq -r '.tag_name'); \
fi && \
curl -o \
/tmp/hedgedoc.tar.gz -L \
"https://github.com/hedgedoc/hedgedoc/releases/download/${HEDGEDOC_RELEASE}/hedgedoc-${HEDGEDOC_RELEASE}.tar.gz" && \
mkdir -p \
/app/hedgedoc && \
tar xf /tmp/hedgedoc.tar.gz -C \
/app/hedgedoc --strip-components=1 && \
cd /app/hedgedoc && \
yarn install --immutable && \
yarn run build && \
yarn workspaces focus --production && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
yarn cache clean && \
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.npm \
$HOME/.yarn \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 3000
VOLUME /config