FROM node:6-alpine as builder RUN apk add --no-cache git RUN git clone https://git.nixc.us/Nixius/hastebin.git /app WORKDIR /app RUN npm install --production RUN chmod +x app.sh FROM node:6-alpine WORKDIR /app COPY --from=builder /app . RUN npm install --production RUN npm install mocha CMD ["/app/app.sh"]