db-rest/Dockerfile

23 lines
327 B
Docker
Raw Normal View History

2020-05-01 20:17:07 +02:00
FROM node:alpine as builder
2017-10-23 23:13:53 +02:00
WORKDIR /app
2020-05-01 20:17:07 +02:00
RUN apk add --update git bash
ADD package.json /app
RUN npm install --production
FROM node:alpine
WORKDIR /app
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-05-01 20:17:07 +02:00
COPY --from=builder /app/node_modules ./node_modules
ADD . /app
2020-05-01 20:12:24 +02:00
RUN npm run build
CMD ["node", "index.js"]