2019-02-13 23:35:12 +01:00
|
|
|
FROM node:10-alpine
|
2018-12-22 21:45:15 +01:00
|
|
|
|
2019-02-16 04:43:57 +01:00
|
|
|
RUN apk add --no-cache tini
|
|
|
|
|
2019-02-13 23:35:12 +01:00
|
|
|
WORKDIR /RTL
|
2018-12-22 21:45:15 +01:00
|
|
|
|
2019-02-25 11:49:49 +01:00
|
|
|
COPY package.json /RTL/package.json
|
|
|
|
COPY package-lock.json /RTL/package-lock.json
|
2018-12-22 21:45:15 +01:00
|
|
|
|
|
|
|
# Install dependencies
|
2020-01-11 22:54:41 +01:00
|
|
|
RUN npm install --only=prod
|
2018-12-22 21:45:15 +01:00
|
|
|
|
2019-02-25 11:49:49 +01:00
|
|
|
COPY . /RTL
|
|
|
|
|
2019-02-15 06:49:04 +01:00
|
|
|
EXPOSE 3000
|
|
|
|
|
2019-02-16 04:43:57 +01:00
|
|
|
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
|
|
|
|
|
|
|
CMD ["node", "rtl"]
|