2019-03-28 17:45:31 +08:00
|
|
|
FROM arm32v7/node:10-stretch
|
|
|
|
LABEL maintainer="Patrik J. Braun"
|
2019-12-12 18:04:20 +08:00
|
|
|
# build tutorial: https://collabnix.com/building-arm-based-docker-images-on-docker-desktop-made-possible-using-buildx/
|
2019-03-28 17:45:31 +08:00
|
|
|
|
|
|
|
RUN git clone https://github.com/bpatrik/pigallery2.git && \
|
|
|
|
cd /pigallery2 && \
|
|
|
|
npm install --unsafe-perm && \
|
2019-12-08 19:44:18 +08:00
|
|
|
npm run create-release && \
|
2019-03-28 17:45:31 +08:00
|
|
|
cp -r /pigallery2/release /pigallery2-release && \
|
|
|
|
rm /pigallery2 -R && \
|
|
|
|
cd /pigallery2-release && \
|
|
|
|
npm install --unsafe-perm
|
|
|
|
|
|
|
|
CMD cd /pigallery2-release && npm start
|