Ride-The-Lightning-RTL/Dockerfile.arm32v7

34 lines
776 B
Docker
Raw Normal View History

2019-02-20 20:03:18 +01:00
FROM node:10-jessie-slim AS builder
2019-02-20 18:35:25 +01:00
2019-02-20 19:10:47 +01:00
ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-armel /tini
2019-02-20 19:37:51 +01:00
ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-armel.asc /tini.asc
2019-02-20 20:03:18 +01:00
RUN apt-get install gnupg
RUN gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
&& gpg --batch --verify /tini.asc /tini
RUN chmod +x /tini
2019-02-20 18:35:25 +01:00
WORKDIR /RTL
COPY . /RTL
2019-02-25 11:49:49 +01:00
COPY package.json /RTL/package.json
COPY package-lock.json /RTL/package-lock.json
2019-02-20 18:35:25 +01:00
# Install dependencies
RUN npm install
2019-02-25 11:49:49 +01:00
COPY . /RTL
2019-02-20 20:03:18 +01:00
FROM arm32v7/node:10-jessie-slim
WORKDIR /RTL
COPY --from=builder "/RTL" .
COPY --from=builder "/tini" /sbin/tini
2019-02-20 18:35:25 +01:00
EXPOSE 3000
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["node", "rtl"]