Dockerfile 837 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ############################################
  2. # guilmour.org
  3. # Libreflix.org
  4. ############################################
  5. FROM debian
  6. MAINTAINER me@guilmour.org
  7. # Apt install some tools
  8. RUN apt-get update && apt-get install -y \
  9. build-essential \
  10. unzip \
  11. wget \
  12. curl \
  13. && rm -rf /var/lib/apt/lists/*
  14. #Getting Node
  15. RUN wget https://deb.nodesource.com/setup_10.x
  16. RUN chmod +x setup_10.x
  17. RUN ./setup_10.x
  18. RUN apt-get install -y nodejs
  19. RUN apt-get install -y build-essential
  20. # Define working directory.
  21. WORKDIR /libreflix
  22. COPY package.json .
  23. RUN npm cache clean --force
  24. RUN rm -rf node_modules
  25. RUN npm install
  26. RUN npm install express
  27. RUN npm install i18n
  28. RUN npm install cookie-parser
  29. RUN npm install -g nodemon
  30. RUN npm install elasticsearch --save
  31. COPY . /libreflix/
  32. # Define default command.
  33. CMD ["/bin/bash"]