-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.aarch64
67 lines (61 loc) · 1.94 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
67
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.20
# set version label
ARG BUILD_DATE
ARG VERSION
ARG BUDGE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"
ENV BUDGE_DATABASE=/config/budge.db \
S6_STAGE2_HOOK="/init-hook"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
build-base \
python3 && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
nodejs \
npm \
sqlite && \
echo "**** install budge ****" && \
mkdir -p /app/www/public && \
if [ -z ${BUDGE_RELEASE+x} ]; then \
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/budge/releases/latest" \
| jq -r '.tag_name'); \
fi && \
curl -o \
/tmp/budge.tar.gz -L \
"https://github.com/linuxserver/budge/archive/${BUDGE_RELEASE}.tar.gz" && \
tar xf \
/tmp/budge.tar.gz -C \
/app/www/public/ --strip-components=1 && \
echo "**** install backend ****" && \
cd /app/www/public/backend && \
npm install && \
npm run build && \
npm prune --omit=dev && \
echo "**** install ynab importer ****" && \
cd /app/www/public/ynab && \
npm install && \
echo "**** install frontend ****" && \
cd /app/www/public/frontend && \
npm install && \
npm run build && \
npm prune --omit=dev && \
echo "**** overlay-fs bug workaround ****" && \
mv /app/www/public/frontend/node_modules /app/www/public/frontend/node_modules-tmp && \
mv /app/www/public/backend/node_modules /app/www/public/backend/node_modules-tmp && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
npm cache clean --force && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/* \
$HOME/.cache
# add local files
COPY root/ /
# ports and volumes
EXPOSE 80 443
VOLUME /config