db-rest/Dockerfile
2020-05-01 20:17:28 +02:00

22 lines
327 B
Docker

FROM node:alpine as builder
WORKDIR /app
RUN apk add --update git bash
ADD package.json /app
RUN npm install --production
FROM node:alpine
WORKDIR /app
EXPOSE 3000
ENV HOSTNAME v5.db.transport.rest
ENV PORT 3000
COPY --from=builder /app/node_modules ./node_modules
ADD . /app
RUN npm run build
CMD ["node", "index.js"]