Files
project-work/worker-toolkit-flaredown/repo/backend/Dockerfile

24 lines
483 B
Docker

FROM ruby:3.2.3
# set working directory
WORKDIR /app
# install dependencies
RUN apt-get update -qq && \
apt-get install -y nodejs postgresql-client
# install bundler
RUN gem install bundler:2.5.6
# copy the Gemfile and Gemfile.lock to the container
COPY Gemfile Gemfile.lock ./
# install the gems
RUN bundle install --full-index
# copy the rest of the application files to the container
COPY . .
# start the server
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]