Last active
June 15, 2018 01:03
-
-
Save checktravis/23b765521f231f7577346eefd192e8ed to your computer and use it in GitHub Desktop.
Experimenting node deployment from within Google Cloud Shell. The default image has node but not yarn. It is configurable with a Dockerfile, this seems to work: (this would be a DEV source, not optimized for prod)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gcr.io/cloudshell-images/cloudshell:latest | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
RUN apt-get update && apt-get install yarn -y | |
# Add your content here | |
# To trigger a rebuild of your Cloud Shell image: | |
# 1. Commit your changes locally: git commit -a | |
# 2. Push your changes upstream: git push origin master | |
# This triggers a rebuild of your image hosted at https://XXXXXXXXXX | |
# You can find the Cloud Source Repository hosting this file at https://source.developers.google.com/XXXXXXXXX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment