base image is google cloud sdk
FROM google/cloud-sdk:268.0.0
Environment setup
CMD ["bash"]
ENV CLOUD_SDK_VERSION=268.0.0
update all packages
RUN apt-get -y -qq update
RUN apt-get install -qqy curl gcc python-dev python-setuptools apt-transport-https lsb-release openssh-client git && pip install -U crcmod && export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"n && echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -n && apt-get update && apt-get install -y google-cloud-sdk=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-app-engine-python=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-app-engine-java=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-app-engine-go=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-datalab=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-datastore-emulator=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-pubsub-emulator=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-bigtable-emulator=${CLOUD_SDK_VERSION}-0 google-cloud-sdk-cbt=${CLOUD_SDK_VERSION}-0 kubectln && gcloud config set core/disable_usage_reporting true && gcloud config set component_manager/disable_update_check true && gcloud config set metrics/environment github_docker_image && gcloud --versionn && docker --versionn && kubectl version --client
VOLUME [/root/.config]
Install Java
RUN apt-get install -y -qq curl python-pip wget default-jdk
Install node version 10
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
Install simple init system
RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb
RUN dpkg -i dumb-init_*.deb
ENTRYPOINT ["dumb-init"]
Install chrome and selenium
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
update after making changes ^^^
RUN apt-get update
RUN apt-get install -y google-chrome-stable
RUN npm install selenium-standalone@latest -g
RUN selenium-standalone install
Set up initial app directories
WORKDIR /opt/app
RUN mkdir /app
WORKDIR /app