Skip to content

Instantly share code, notes, and snippets.



Created Jul 8, 2019
What would you like to do?
FROM ruby:2.6.3
RUN apt-get update \
&& apt-get -y install curl wget git ssh mupdf-tools mc vim
RUN curl -sL | bash - \
&& apt-get install -y nodejs
# 2: We'll set the application path as the working directory
WORKDIR /usr/src/app
# 3: We'll set the working dir as HOME and add the app's binaries path to $PATH:
ENV HOME=/usr/src/app PATH=/usr/src/app/bin:$PATH
# 4: Expose the app web port:
# 7: Install the current project gems - they can be safely changed later during
# development via `bundle install` or `bundle update`:
ADD Gemfile* /usr/src/app/
RUN set -ex && bundle --retry 3
#TODO add yarn
#curl -sS | sudo apt-key add -
#echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#apt-get update
#apt-get install yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment