Skip to content

Instantly share code, notes, and snippets.

@ukazap
Last active May 19, 2019 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukazap/92da676d302bb455b58cfda7142b2706 to your computer and use it in GitHub Desktop.
Save ukazap/92da676d302bb455b58cfda7142b2706 to your computer and use it in GitHub Desktop.
Debian Stretch + Ruby 2.6.3 + Nodejs + Yarn + Google Cloud SDK
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
@ukazap
Copy link
Author

ukazap commented May 19, 2019

@ukazap
Copy link
Author

ukazap commented May 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment