mirror of
https://github.com/linuxserver/docker-budge.git
synced 2026-02-05 04:38:13 +08:00
added make, fixed formatting
This commit is contained in:
parent
973cfb1616
commit
9f5cb39895
81
Dockerfile
81
Dockerfile
@ -8,46 +8,47 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="alex-phillips"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
python3 && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
sqlite && \
|
||||
echo "**** install budge ****" && \
|
||||
mkdir -p /app/budge && \
|
||||
if [ -z ${NOTEMARKS_RELEASE+x} ]; then \
|
||||
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \
|
||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
||||
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/budge/ --strip-components=1 && \
|
||||
echo "**** install backend ****" && \
|
||||
cd /app/budge/backend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** install ynab importer ****" && \
|
||||
cd /app/budge/ynab && \
|
||||
npm i && \
|
||||
echo "**** install frontend ****" && \
|
||||
cd /app/budge/frontend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
sqlite && \
|
||||
echo "**** install budge ****" && \
|
||||
mkdir -p /app/budge && \
|
||||
if [ -z ${NOTEMARKS_RELEASE+x} ]; then \
|
||||
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \
|
||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
||||
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/budge/ --strip-components=1 && \
|
||||
echo "**** install backend ****" && \
|
||||
cd /app/budge/backend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** install ynab importer ****" && \
|
||||
cd /app/budge/ynab && \
|
||||
npm i && \
|
||||
echo "**** install frontend ****" && \
|
||||
cd /app/budge/frontend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
@ -8,46 +8,47 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="alex-phillips"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
python3 && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
sqlite && \
|
||||
echo "**** install budge ****" && \
|
||||
mkdir -p /app/budge && \
|
||||
if [ -z ${NOTEMARKS_RELEASE+x} ]; then \
|
||||
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \
|
||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
||||
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/budge/ --strip-components=1 && \
|
||||
echo "**** install backend ****" && \
|
||||
cd /app/budge/backend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** install ynab importer ****" && \
|
||||
cd /app/budge/ynab && \
|
||||
npm i && \
|
||||
echo "**** install frontend ****" && \
|
||||
cd /app/budge/frontend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
sqlite && \
|
||||
echo "**** install budge ****" && \
|
||||
mkdir -p /app/budge && \
|
||||
if [ -z ${NOTEMARKS_RELEASE+x} ]; then \
|
||||
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \
|
||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
||||
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/budge/ --strip-components=1 && \
|
||||
echo "**** install backend ****" && \
|
||||
cd /app/budge/backend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** install ynab importer ****" && \
|
||||
cd /app/budge/ynab && \
|
||||
npm i && \
|
||||
echo "**** install frontend ****" && \
|
||||
cd /app/budge/frontend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
@ -8,46 +8,47 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
||||
LABEL maintainer="alex-phillips"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
python3 && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
sqlite && \
|
||||
echo "**** install budge ****" && \
|
||||
mkdir -p /app/budge && \
|
||||
if [ -z ${NOTEMARKS_RELEASE+x} ]; then \
|
||||
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \
|
||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
||||
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/budge/ --strip-components=1 && \
|
||||
echo "**** install backend ****" && \
|
||||
cd /app/budge/backend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** install ynab importer ****" && \
|
||||
cd /app/budge/ynab && \
|
||||
npm i && \
|
||||
echo "**** install frontend ****" && \
|
||||
cd /app/budge/frontend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
sqlite && \
|
||||
echo "**** install budge ****" && \
|
||||
mkdir -p /app/budge && \
|
||||
if [ -z ${NOTEMARKS_RELEASE+x} ]; then \
|
||||
BUDGE_RELEASE=$(curl -sX GET "https://api.github.com/repos/linuxserver/BudgE/commits/main" \
|
||||
| awk '/sha/{print $4;exit}' FS='[""]'); \
|
||||
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/budge/ --strip-components=1 && \
|
||||
echo "**** install backend ****" && \
|
||||
cd /app/budge/backend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** install ynab importer ****" && \
|
||||
cd /app/budge/ynab && \
|
||||
npm i && \
|
||||
echo "**** install frontend ****" && \
|
||||
cd /app/budge/frontend && \
|
||||
npm i && \
|
||||
npm run build && \
|
||||
npm prune --production && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user