Retrospring/.docker/ruby/Dockerfile

31 lines
616 B
Docker
Raw Normal View History

2020-04-19 05:59:50 -07:00
FROM ruby:2.7
2020-04-18 16:17:37 -07:00
RUN apt-get update -qq && apt-get install -y build-essential
# for postgres
RUN apt-get install -y libpq-dev
# for nokogiri
RUN apt-get install -y libxml2-dev libxslt1-dev
# for images
RUN apt-get install -y libmagickwand-dev imagemagick
# for a JS runtime
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-client \
&& rm -rf /var/lib/apt/lists/*
ENV APP_HOME /app
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
2020-04-19 05:59:50 -07:00
EXPOSE 3000