diff --git a/Dockerfile b/Dockerfile index 46b6a4e7..15de32be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine +FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine ENV VERSION=v1.23.0 ENV NODE_ENV=production ENV SERVICE_ENABLE_SSHD=true @@ -7,6 +7,12 @@ ENV SERVICE_ENABLE_FIREBASE=false RUN apk update && apk upgrade && apk add bash +RUN apk --update add openjdk7-jre + +RUN gcloud components install app-engine-java kubectl + +RUN apk add --update nodejs npm + RUN apk add --no-cache git openssh nfs-utils rpcbind curl ca-certificates nano tzdata ncurses make tcpdump \ && curl -L https://storage.googleapis.com/kubernetes-release/release/$VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \ && chmod +x /usr/local/bin/kubectl \ @@ -17,10 +23,6 @@ RUN apk add --no-cache git openssh nfs-utils rpcbind curl ca-certificates nano t && echo "America/New_York" > /etc/timezone \ && apk del tzdata -RUN curl -sSL https://sdk.cloud.google.com > /tmp/gcl && bash /tmp/gcl --install-dir=/root --disable-prompts - -RUN export PATH=$PATH:/root/google-cloud-sdk/bin - RUN gcloud components update kubectl RUN gcloud components install gke-gcloud-auth-plugin