Dockerfile 733 B

123456789101112131415161718192021222324252627
  1. FROM node:8.1-alpine
  2. ENV REDIS_HOST=0.0.0.0
  3. ENV STORAGE_TYPE=file
  4. ENV UID=791 GID=791
  5. EXPOSE 7777
  6. COPY run.sh /usr/local/bin/run.sh
  7. COPY about.md /hastebin/about.md
  8. COPY haste.py /hastebin/haste.py
  9. WORKDIR /hastebin
  10. RUN set -xe \
  11. && apk add -U --no-cache --virtual .build-deps zip unzip ca-certificates openssl \
  12. && apk add -U --no-cache su-exec busybox \
  13. && wget https://github.com/seejohnrun/haste-server/archive/master.zip \
  14. && unzip master.zip \
  15. && find haste-server-master -mindepth 1 -maxdepth 1 -print0 | xargs -0 -i mv {} /hastebin \
  16. && rmdir haste-server-master \
  17. && rm master.zip \
  18. && npm install \
  19. && chmod +x -R /usr/local/bin/run.sh \
  20. && apk del .build-deps
  21. CMD ["run.sh"]