mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
updating arm32v6 Dockerfile to alpine
This commit is contained in:
parent
e28420e8c4
commit
d07ee3a6f1
@ -8,3 +8,9 @@ docs/
|
|||||||
out-tsc/
|
out-tsc/
|
||||||
test/
|
test/
|
||||||
docker/
|
docker/
|
||||||
|
.travis.yml
|
||||||
|
config.json
|
||||||
|
karma.conf.js
|
||||||
|
protractor.conf.js
|
||||||
|
Procfile
|
||||||
|
.*ignore
|
||||||
|
@ -3,7 +3,7 @@ RUN apk add --no-cache wget && \
|
|||||||
wget https://github.com/multiarch/qemu-user-static/releases/download/v4.1.1-1/x86_64_qemu-arm-static.tar.gz && \
|
wget https://github.com/multiarch/qemu-user-static/releases/download/v4.1.1-1/x86_64_qemu-arm-static.tar.gz && \
|
||||||
tar -xvf x86_64_qemu-arm-static.tar.gz
|
tar -xvf x86_64_qemu-arm-static.tar.gz
|
||||||
|
|
||||||
FROM arm32v6/node:12-stretch AS builder
|
FROM arm32v6/node:12-alpine AS builder
|
||||||
COPY --from=qemu-builder /qemu-arm-static /usr/bin
|
COPY --from=qemu-builder /qemu-arm-static /usr/bin
|
||||||
# LABEL maintainer="Patrik J. Braun"
|
# LABEL maintainer="Patrik J. Braun"
|
||||||
# copying only package{-lock}.json to make node_modules cachable
|
# copying only package{-lock}.json to make node_modules cachable
|
||||||
@ -26,7 +26,7 @@ RUN mkdir -p /build/release/data/config && \
|
|||||||
--Server-Thumbnail-folder='data/tmp' || true
|
--Server-Thumbnail-folder='data/tmp' || true
|
||||||
|
|
||||||
|
|
||||||
FROM arm32v6/node:12-stretch-slim
|
FROM arm32v6/node:12-alpine
|
||||||
COPY --from=qemu-builder /qemu-arm-static /usr/bin
|
COPY --from=qemu-builder /qemu-arm-static /usr/bin
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["npm", "start"]
|
ENTRYPOINT ["npm", "start"]
|
Loading…
Reference in New Issue
Block a user