2019-08-16 07:08:47 +00:00
|
|
|
FROM node:10-stretch-slim AS builder
|
2019-08-16 06:07:32 +00:00
|
|
|
|
2019-08-16 16:10:11 +00:00
|
|
|
ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-arm64 /tini
|
2019-08-16 06:07:32 +00:00
|
|
|
RUN chmod +x /tini
|
|
|
|
|
|
|
|
WORKDIR /RTL
|
|
|
|
|
|
|
|
COPY . /RTL
|
|
|
|
|
|
|
|
COPY package.json /RTL/package.json
|
|
|
|
COPY package-lock.json /RTL/package-lock.json
|
|
|
|
|
|
|
|
# Install dependencies
|
2020-01-11 21:54:41 +00:00
|
|
|
RUN npm install --only=prod
|
2019-08-16 06:07:32 +00:00
|
|
|
|
|
|
|
COPY . /RTL
|
|
|
|
|
2019-08-16 06:49:49 +00:00
|
|
|
FROM arm64v8/node:10-stretch-slim
|
2019-08-16 06:07:32 +00:00
|
|
|
|
|
|
|
WORKDIR /RTL
|
|
|
|
|
|
|
|
COPY --from=builder "/RTL" .
|
|
|
|
COPY --from=builder "/tini" /sbin/tini
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
|
|
|
|
|
|
|
CMD ["node", "rtl"]
|