1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-11-28 08:58:49 +02:00

Update Dockerfile

This commit is contained in:
Patrik J. Braun 2019-12-18 16:28:32 +01:00 committed by GitHub
parent f38947a0ad
commit 27fe518b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@ RUN apk add --no-cache wget && \
# separate release builder for faster build on docker hub
FROM node:12-stretch AS node-builder
RUN apk add python build-base
# copying only package{-lock}.json to make node_modules cachable
COPY package*.json /build/
WORKDIR /build
@ -14,9 +13,8 @@ RUN set -x && npm install --unsafe-perm
COPY . /build
RUN npm run create-release
FROM arm32v7/node:12-stretch-slim AS builder
FROM arm32v7/node:12-stretch AS builder
COPY --from=qemu-builder /qemu-arm-static /usr/bin
RUN apk add python build-base
COPY --from=node-builder /build/release /build/release
RUN mkdir -p /build/release/data/config && \
mkdir -p /build/release/data/db && \
@ -31,7 +29,7 @@ RUN mkdir -p /build/release/data/config && \
--Server-Media-tempFolder='data/tmp' || true
FROM arm32v7/node:12-alpine
FROM arm32v7/node:12-stretch-slim
COPY --from=qemu-builder /qemu-arm-static /usr/bin
WORKDIR /app
ENTRYPOINT ["npm", "start"]