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

entrypoint fix

This commit is contained in:
Patrik J. Braun 2019-12-23 08:29:10 +01:00
parent 63fd2ff079
commit 9e7e66a4aa
2 changed files with 10 additions and 10 deletions

View File

@ -12,11 +12,11 @@ RUN mkdir -p /app/data/config && \
FROM node:12-alpine
WORKDIR /app
# command line arg orverride the config.json with these settings
ENTRYPOINT ["npm", "start", "--",
"--config-path=/app/data/config/config.json",
"--Server-Database-sqlite-storage='/app/data/db/sqlite.db'",
"--Server-Database-memory-usersFile='/app/data/db/users.db'",
"--Server-Media-folder='/app/data/images'",
ENTRYPOINT ["npm", "start", "--", \
"--config-path=/app/data/config/config.json", \
"--Server-Database-sqlite-storage='/app/data/db/sqlite.db'", \
"--Server-Database-memory-usersFile='/app/data/db/users.db'", \
"--Server-Media-folder='/app/data/images'", \
"--Server-Media-tempFolder='/app/data/tmp'"]
EXPOSE 80
ENV NODE_ENV=production

View File

@ -11,11 +11,11 @@ RUN mkdir -p /app/data/config && \
FROM node:12-stretch-slim
WORKDIR /app
# command line arg orverride the config.json with these settings
ENTRYPOINT ["npm", "start", "--",
"--config-path=/app/data/config/config.json",
"--Server-Database-sqlite-storage='/app/data/db/sqlite.db'",
"--Server-Database-memory-usersFile='/app/data/db/users.db'",
"--Server-Media-folder='/app/data/images'",
ENTRYPOINT ["npm", "start", "--", \
"--config-path=/app/data/config/config.json", \
"--Server-Database-sqlite-storage='/app/data/db/sqlite.db'", \
"--Server-Database-memory-usersFile='/app/data/db/users.db'", \
"--Server-Media-folder='/app/data/images'", \
"--Server-Media-tempFolder='/app/data/tmp'"]
EXPOSE 80
ENV NODE_ENV=production