Last active
May 19, 2019 14:14
-
-
Save ukazap/92da676d302bb455b58cfda7142b2706 to your computer and use it in GitHub Desktop.
Debian Stretch + Ruby 2.6.3 + Nodejs + Yarn + Google Cloud SDK
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 bitnami/ruby:2.6.3 | |
ARG DEBIAN_VERSION="stretch" | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && \ | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | \ | |
tee /etc/apt/sources.list.d/yarn.list && \ | |
echo "deb http://packages.cloud.google.com/apt cloud-sdk-$DEBIAN_VERSION main" | \ | |
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | |
apt-get update -y && \ | |
apt-get -y --no-install-recommends install google-cloud-sdk nodejs yarn && \ | |
apt-get clean && \ | |
rm -f /var/lib/apt/lists/*_*; | |
EXPOSE 8080 | |
WORKDIR /usr/src/app | |
ENV PORT=8080 \ | |
RACK_ENV=production \ | |
RAILS_ENV=production \ | |
APP_ENV=production \ | |
RAILS_SERVE_STATIC_FILES=true \ | |
RAILS_LOG_TO_STDOUT=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://cloud.google.com/container-registry/docs/quickstart