mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-11 13:10:41 +00:00
2515d8027d
Dependency updates
30 lines
509 B
Docker
30 lines
509 B
Docker
FROM node:10-stretch-slim AS builder
|
|
|
|
ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini-static-arm64 /tini
|
|
RUN chmod +x /tini
|
|
|
|
WORKDIR /RTL
|
|
|
|
COPY . /RTL
|
|
|
|
COPY package.json /RTL/package.json
|
|
COPY package-lock.json /RTL/package-lock.json
|
|
|
|
# Install dependencies
|
|
RUN npm install --only=prod
|
|
|
|
COPY . /RTL
|
|
|
|
FROM arm64v8/node:10-stretch-slim
|
|
|
|
WORKDIR /RTL
|
|
|
|
COPY --from=builder "/RTL" .
|
|
COPY --from=builder "/tini" /sbin/tini
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
|
|
|
CMD ["node", "rtl"]
|