Skip to content

Instantly share code, notes, and snippets.

@shalkam
Created July 15, 2019 13:44
Show Gist options
  • Save shalkam/719c048bd6be19cab272660d08bb59f2 to your computer and use it in GitHub Desktop.
Save shalkam/719c048bd6be19cab272660d08bb59f2 to your computer and use it in GitHub Desktop.
docker file with gcloud sdk, apollo and prisma
FROM node:10-alpine
ARG CLOUD_SDK_VERSION=251.0.0
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION
ENV PATH /google-cloud-sdk/bin:$(yarn global bin):$PATH
RUN apk --no-cache add \
curl \
python \
py-crcmod \
bash \
libc6-compat \
openssh-client \
git \
gnupg \
gettext \
&& curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
ln -s /lib /lib64 && \
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 components install kubectl && \
gcloud --version
RUN yarn global add apollo prisma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment