Files
astuto/docker/app/Dockerfile

35 lines
987 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
# Install Chrome (only needed for Capybara tests)
# Uncomment following lines if you need to run integration tests
# 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
# RUN rm /google-chrome-stable_current_amd64.deb
2019-08-27 20:33:44 +02:00
2019-12-03 23:16:34 +01:00
ENV APP_ROOT /astuto
RUN mkdir ${APP_ROOT}
WORKDIR ${APP_ROOT}
2019-08-18 14:51:37 +02:00
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
2019-12-03 23:16:34 +01:00
COPY Gemfile* ${APP_ROOT}/
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
2019-12-03 23:16:34 +01:00
COPY package.json yarn.lock ${APP_ROOT}/
2019-08-18 14:51:37 +02:00
RUN yarn install --check-files
2019-12-03 23:16:34 +01:00
COPY . ${APP_ROOT}
2019-08-18 14:51:37 +02:00
# Add a script to be executed every time the container starts.
2019-12-03 23:16:34 +01:00
ENTRYPOINT ["./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