1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-31 02:29:51 +02:00

adding docker files

This commit is contained in:
Patrik J. Braun 2018-12-05 21:55:11 +01:00
parent 8e18abd2bd
commit 49f9749e6a
3 changed files with 43 additions and 2 deletions

View File

@ -50,12 +50,14 @@ unzip master.zip
cd pigallery2-master # enter the unzipped directory
npm install
```
**Note**: if you run `npm run build-release`, it creates a clean, minified, production ready version from the app in the `release` folder, that is ready to deploy.
### Run PiGallery2
```bash
npm start
```
To configure it. Run `PiGallery2` first to create `config.json` file, then edit it and restart.
To configure it, run `PiGallery2` first to create `config.json` file, then edit it and restart.
The app has a nice UI for settings, you may use that too.
Default user: `admin` pass: `admin`
### Useful links/tips:
@ -103,7 +105,7 @@ apt-get install build-essential libkrb5-dev gcc g++
* **On the fly thumbnail generation** in several sizes
* prioritizes thumbnail generation (generating thumbnail first for the visible photos)
* saving generated thumbnails to TEMP folder for reuse
* supporting several core CPU
* supporting multi-core CPUs
* supporting hardware acceleration ([sharp](https://github.com/lovell/sharp) and [gm](https://github.com/aheckmann/gm) as optional and JS-based [Jimp](https://github.com/oliver-moran/jimp) as fallback)
* Custom lightbox for full screen photo viewing
* keyboard support for navigation

View File

@ -0,0 +1,17 @@
FROM node:10-stretch
MAINTAINER Patrik J. Braun
RUN git clone https://github.com/bpatrik/pigallery2.git && \
cd /pigallery2 && \
npm install --unsafe-perm && \
npm run build-release
RUN cp -r /pigallery2/release /pigallery2-release && \
rm /pigallery2 -R
RUN cd /pigallery2-release && \
npm install --unsafe-perm
cmd cd /pigallery2-release && npm start

View File

@ -0,0 +1,22 @@
FROM ubuntu:16.04
MAINTAINER Patrik J. Braun
RUN apt-get update && \
apt-get install -y curl git
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs && \
apt-get install -y build-essential
RUN git clone https://github.com/bpatrik/pigallery2.git && \
cd /pigallery2 && \
npm install --unsafe-perm && \
npm run build-release
RUN cp -r /pigallery2/release /pigallery2-release && \
rm /pigallery2 -R
RUN cd /pigallery2-release && \
npm install --unsafe-perm
cmd cd /pigallery2-release && npm start