puppet node classifier
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.
 
 
 
 
 
 

34 lines
836 B

  1. FROM ubuntu:bionic
  2. RUN apt-get update && \
  3. apt-get install -y wget software-properties-common && \
  4. echo "deb https://deb.nodesource.com/node_10.x bionic main" | tee /etc/apt/sources.list.d/nodesource.list && \
  5. wget -q -O- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
  6. apt-get update && \
  7. apt-get install -y nodejs
  8. ADD . /tmp/code/
  9. RUN cd /tmp/code && \
  10. npm install && \
  11. ./node_modules/.bin/grunt
  12. FROM ubuntu:bionic
  13. ADD . /tmp/code/
  14. COPY --from=0 /tmp/code/styles/dist/style.css /tmp/code/styles/dist/style.css
  15. RUN apt-get update && \
  16. apt-get install -y python3-pip sudo git
  17. RUN pip3 install -U pip && \
  18. cd /tmp/code && \
  19. pip install -r requirements.txt && \
  20. python3 setup.py install && \
  21. useradd --uid 1000 app
  22. ADD start /start
  23. ENTRYPOINT ["/start"]