2020-05-01 20:17:07 +02:00
|
|
|
FROM node:alpine as builder
|
2017-10-23 23:13:53 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-11-25 15:19:30 +01:00
|
|
|
# install dependencies
|
2020-05-01 20:17:07 +02:00
|
|
|
RUN apk add --update git bash
|
|
|
|
ADD package.json /app
|
2020-11-25 15:19:30 +01:00
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
# build documentation
|
|
|
|
ADD . /app
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
# ---
|
2020-05-01 20:17:07 +02:00
|
|
|
|
|
|
|
FROM node:alpine
|
|
|
|
WORKDIR /app
|
2017-10-23 23:13:53 +02:00
|
|
|
|
2020-11-25 15:19:30 +01:00
|
|
|
# install dependencies
|
|
|
|
ADD package.json /app
|
|
|
|
RUN npm install --production
|
|
|
|
|
|
|
|
# add source code
|
|
|
|
ADD . /app
|
|
|
|
COPY --from=builder /app/docs ./docs
|
|
|
|
|
2017-10-23 23:13:53 +02:00
|
|
|
EXPOSE 3000
|
|
|
|
|
2020-04-30 15:05:18 +02:00
|
|
|
ENV HOSTNAME v5.db.transport.rest
|
2017-10-23 23:13:53 +02:00
|
|
|
ENV PORT 3000
|
|
|
|
|
2020-04-26 18:09:50 +02:00
|
|
|
CMD ["node", "index.js"]
|