You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
850 B

  1. FROM ubuntu:16.04
  2. RUN apt-get update && apt-get install -y \
  3. vim \
  4. wget \
  5. git \
  6. curl \
  7. npm \
  8. nodejs-legacy
  9. ARG VERSION=0.3.0
  10. # Download stable version
  11. # RUN wget https://github.com/xwiki-labs/cryptpad/archive /${VERSION}.tar.gz -O /cryptpad.tar.gz \
  12. # && mkdir -p /cryptpad \
  13. # && tar -xzf /cryptpad.tar.gz -C /cryptpad --strip-components=1 \
  14. # && rm /cryptpad.tar.gz
  15. # Download from github
  16. # RUN git clone https://github.com/xwiki-labs/cryptpad.git
  17. # Add code directly
  18. ADD . /cryptpad
  19. WORKDIR /cryptpad
  20. RUN npm install \
  21. && npm install -g bower \
  22. && bower install --allow-root
  23. ADD container-start.sh /container-start.sh
  24. RUN chmod u+x /container-start.sh
  25. EXPOSE 3000
  26. VOLUME /cryptpad/datastore
  27. VOLUME /cryptpad/customize
  28. ENV USE_SSL=false
  29. ENV STORAGE='./storage/file'
  30. ENV LOG_TO_STDOUT=true
  31. CMD /container-start.sh