You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
510 B
Docker
30 lines
510 B
Docker
3 years ago
|
FROM node:14-stretch-slim AS builder
|
||
5 years ago
|
|
||
3 years ago
|
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini-static-arm64 /tini
|
||
5 years ago
|
RUN chmod +x /tini
|
||
|
|
||
|
WORKDIR /RTL
|
||
|
|
||
|
COPY . /RTL
|
||
|
|
||
|
COPY package.json /RTL/package.json
|
||
|
COPY package-lock.json /RTL/package-lock.json
|
||
|
|
||
|
# Install dependencies
|
||
3 years ago
|
RUN npm install --production
|
||
5 years ago
|
|
||
|
COPY . /RTL
|
||
|
|
||
3 years ago
|
FROM arm64v8/node:14-stretch-slim
|
||
5 years ago
|
|
||
|
WORKDIR /RTL
|
||
|
|
||
|
COPY --from=builder "/RTL" .
|
||
|
COPY --from=builder "/tini" /sbin/tini
|
||
|
|
||
|
EXPOSE 3000
|
||
|
|
||
|
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
||
|
|
||
|
CMD ["node", "rtl"]
|