adding docker files
This commit is contained in:
parent
8e18abd2bd
commit
49f9749e6a
@ -50,12 +50,14 @@ unzip master.zip
|
|||||||
cd pigallery2-master # enter the unzipped directory
|
cd pigallery2-master # enter the unzipped directory
|
||||||
npm install
|
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
|
### Run PiGallery2
|
||||||
```bash
|
```bash
|
||||||
npm start
|
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`
|
Default user: `admin` pass: `admin`
|
||||||
|
|
||||||
### Useful links/tips:
|
### Useful links/tips:
|
||||||
@ -103,7 +105,7 @@ apt-get install build-essential libkrb5-dev gcc g++
|
|||||||
* **On the fly thumbnail generation** in several sizes
|
* **On the fly thumbnail generation** in several sizes
|
||||||
* prioritizes thumbnail generation (generating thumbnail first for the visible photos)
|
* prioritizes thumbnail generation (generating thumbnail first for the visible photos)
|
||||||
* saving generated thumbnails to TEMP folder for reuse
|
* 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)
|
* 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
|
* Custom lightbox for full screen photo viewing
|
||||||
* keyboard support for navigation
|
* keyboard support for navigation
|
||||||
|
|||||||
17
docker/debian/stretch/Dockerfile
Normal file
17
docker/debian/stretch/Dockerfile
Normal 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
|
||||||
|
|
||||||
22
docker/ubuntu/16/Dockerfile
Normal file
22
docker/ubuntu/16/Dockerfile
Normal 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
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user