Files
astuto/Dockerfile

33 lines
854 B
Docker
Raw Normal View History

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-08-27 20:33:44 +02:00
# Install Chrome (needed by Capybara). TODO: optional installation, only if development
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
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-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.
ENTRYPOINT ["/app/docker-entrypoint.sh"]
2019-08-18 14:51:37 +02:00
EXPOSE 3000
2019-09-23 12:14:35 +02:00
# No default CMD is provided in Dockerfile