Created
July 8, 2019 21:02
-
-
Save dutsik/69090a55c2f00fd302e391b74805f9cf to your computer and use it in GitHub Desktop.
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 ruby:2.6.3 | |
RUN apt-get update \ | |
&& apt-get -y install curl wget git ssh mupdf-tools mc vim | |
RUN curl -sL https://deb.nodesource.com/setup_10.x | 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: | |
EXPOSE 3000 | |
# 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 https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
#echo "deb https://dl.yarnpkg.com/debian/ 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