Dockerfile 655 B

12345678910111213141516171819202122232425262728
  1. FROM node:8-alpine
  2. ARG SEND_VERSION=v2.5.4
  3. ENV UID=791 GID=791
  4. EXPOSE 1443
  5. COPY run.sh /usr/local/bin/run.sh
  6. COPY s6.d /etc/s6.d
  7. WORKDIR /send
  8. RUN set -xe \
  9. && apk add --no-cache -U su-exec redis s6 \
  10. && apk add --no-cache --virtual .build-deps wget tar ca-certificates openssl git \
  11. && git clone https://github.com/mozilla/send.git . \
  12. && git checkout tags/${SEND_VERSION} \
  13. && npm install \
  14. && npm run build \
  15. && rm -rf node_modules \
  16. && npm install --production \
  17. && npm cache clean --force \
  18. && rm -rf .git \
  19. && apk del .build-deps \
  20. && chmod +x -R /usr/local/bin/run.sh /etc/s6.d
  21. CMD ["run.sh"]