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

fixing docker app path

This commit is contained in:
Patrik J. Braun 2019-12-22 22:34:36 +01:00
parent e1c6492b4d
commit cec031d9ef
3 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
FROM node:12-alpine AS builder
RUN apk add python build-base sqlite-dev sqlite-libs vips-dev
COPY pigallery2-release /build
WORKDIR /build
COPY pigallery2-release /app
WORKDIR /app
RUN npm install --unsafe-perm
RUN mkdir -p /app/data/config && \
mkdir -p /app/data/db && \

View File

@ -1,6 +1,6 @@
FROM node:12-stretch AS builder
COPY pigallery2-release /build
WORKDIR /build
COPY pigallery2-release /app
WORKDIR /app
RUN npm install --unsafe-perm
RUN mkdir -p /app/data/config && \
mkdir -p /app/data/db && \

View File

@ -11,11 +11,11 @@ RUN set -x && npm install --unsafe-perm && \
npm run create-release && \
cd /build/release && npm install --unsafe-perm && \
npm start -- --config-only --force-rewrite-config \
--config-path=data/config/config.json \
--Server-Database-sqlite-storage='data/db/sqlite.db' \
--Server-Database-memory-usersFile='data/db/users.db' \
--Server-Media-folder='data/images' \
--Server-Media-tempFolder='data/tmp' || true
--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'
FROM node:12-stretch-slim