mirror of
https://github.com/linuxserver/docker-budge.git
synced 2026-02-04 20:28:18 +08:00
default location for db, linked config file to volume mount
This commit is contained in:
parent
90677439e5
commit
fa443bcdde
@ -7,6 +7,8 @@ ARG BUDGE_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="alex-phillips"
|
||||
|
||||
ENV BUDGE_DATABASE=/config/budge.db
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
|
||||
@ -7,6 +7,8 @@ ARG BUDGE_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="alex-phillips"
|
||||
|
||||
ENV BUDGE_DATABASE=/config/budge.db
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
|
||||
@ -7,6 +7,8 @@ ARG BUDGE_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="alex-phillips"
|
||||
|
||||
ENV BUDGE_DATABASE=/config/budge.db
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
|
||||
@ -5,10 +5,10 @@ cd /app/budge/backend
|
||||
touch /app/budge/backend/budge.sqlite
|
||||
|
||||
# copy config
|
||||
[[ ! -e /config/budge.db ]] && \
|
||||
mv /app/budge/backend/budge.sqlite
|
||||
[[ ! -e /config/config.js ]] && \
|
||||
mv /app/budge/backend/build/ormconfig.js /config/config.js
|
||||
|
||||
ln -sf /config/budge.db /app/budge/backend/budge.sqlite
|
||||
ln -sf /config/config.js /app/budge/backend/build/ormconfig.js
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user