2019-08-18 14:51:37 +02:00
|
|
|
FROM ruby:2.6.3
|
|
|
|
|
|
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
|
|
|
|
|
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
|
|
|
|
|
RUN npm install -g yarn
|
|
|
|
|
|
2019-09-23 18:41:38 +02:00
|
|
|
# Install Chrome (needed by Capybara). TODO: optional installation, only if needed
|
2019-08-27 20:33:44 +02:00
|
|
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
2019-09-23 18:41:38 +02:00
|
|
|
RUN dpkg -i /google-chrome-stable_current_amd64.deb; apt-get -fy install
|
|
|
|
|
RUN rm /google-chrome-stable_current_amd64.deb
|
2019-08-27 20:33:44 +02:00
|
|
|
|
2019-08-18 14:51:37 +02:00
|
|
|
RUN mkdir /app
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2019-09-05 17:47:41 +02:00
|
|
|
# Launch processes in Procfile
|
|
|
|
|
RUN gem install foreman
|
|
|
|
|
|
2019-09-22 15:52:53 +02:00
|
|
|
# Copy Gemfile and install gems
|
|
|
|
|
COPY Gemfile* /app/
|
2019-08-18 14:51:37 +02:00
|
|
|
RUN bundle install
|
2019-08-25 20:47:44 +02:00
|
|
|
|
2019-09-22 15:52:53 +02:00
|
|
|
# Copy package.json and install packages
|
|
|
|
|
COPY package.json yarn.lock /app/
|
2019-08-18 14:51:37 +02:00
|
|
|
RUN yarn install --check-files
|
|
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
|
|
# Add a script to be executed every time the container starts.
|
2019-08-25 20:47:44 +02:00
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
2019-08-18 14:51:37 +02:00
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
2019-09-23 18:41:38 +02:00
|
|
|
# No default CMD is provided in Dockerfile
|