1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

upgrading the docker files to only set default values

This commit is contained in:
Patrik J. Braun 2020-02-07 14:03:03 +01:00
parent c6c4210dd2
commit 04179f93b7
2 changed files with 8 additions and 6 deletions

View File

@ -18,9 +18,10 @@ FROM node:12-alpine3.11 as main
WORKDIR /app
ENV NODE_ENV=production \
CONFIG_FILE=/app/data/config/config.json \
Server-Database-dbFolder=/app/data/db \
Server-Media-folder=/app/data/images \
Server-Media-tempFolder=/app/data/tmp
# overrides only the default value of the settings (the actualy value can be overwritten through config.json)
default-Server-Database-dbFolder=/app/data/db \
default-Server-Media-folder=/app/data/images \
default-Server-Media-tempFolder=/app/data/tmp
# command line arg orverride the config.json with these settings
ENTRYPOINT ["node", "./src/backend/index", \
# after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible

View File

@ -16,9 +16,10 @@ FROM node:12-stretch-slim as main
WORKDIR /app
ENV NODE_ENV=production \
CONFIG_FILE=/app/data/config/config.json \
Server-Database-dbFolder=/app/data/db \
Server-Media-folder=/app/data/images \
Server-Media-tempFolder=/app/data/tmp
# overrides only the default value of the settings (the actualy value can be overwritten through config.json)
default-Server-Database-dbFolder=/app/data/db \
default-Server-Media-folder=/app/data/images \
default-Server-Media-tempFolder=/app/data/tmp
# command line arg orverride the config.json with these settings
ENTRYPOINT ["node", "./src/backend/index", \
# after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible