SOFD/docker/haste/Dockerfile

14 lines
319 B
Docker

FROM node:6-alpine as builder
RUN apk add --no-cache git
RUN git clone --depth 1 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"]