Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Use an official Ubuntu Xenial as a parent image
  2. FROM ubuntu:16.04
  3. # Install Node.js 8 and npm 5
  4. RUN apt-get update
  5. RUN apt-get install -y build-essential curl gettext
  6. RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
  7. RUN apt-get install -y nodejs
  8. RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
  9. RUN chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl
  10. # Install Helm
  11. ENV HELM_FILENAME helm-v2.10.0-linux-amd64.tar.gz
  12. ENV HELM_URL https://storage.googleapis.com/kubernetes-helm/${HELM_FILENAME}
  13. RUN echo $HELM_URL
  14. RUN curl -o /tmp/${HELM_FILENAME} ${HELM_URL} \
  15. && tar -zxvf /tmp/${HELM_FILENAME} -C /tmp \
  16. && mv /tmp/linux-amd64/helm /bin/helm \
  17. && rm -rf /tmp/linux-amd64 \
  18. && rm -rf /tmp/${HELM_FILENAME}
  19. RUN helm init --client-only
  20. # Set the working directory to /app
  21. WORKDIR /app
  22. # Copy the current directory contents into the container
  23. ADD . /app
  24. # Install any needed packages specified in requirements.txt
  25. RUN npm install
  26. CMD ["npm", "start"]