# FROM ruby:2.7.1-alpine # Uncomment the line above if you want to use a Dockerfile instead of templateId RUN apk update && apk upgrade && \ apk add --no-cache make g++ git postgresql-dev RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY ./Gemfile /usr/src/app/ RUN bundle install COPY ./ /usr/src/app ENV RACK_ENV production EXPOSE 80 CMD ["rackup", "config.ru", "--host", "0.0.0.0", "--port", "80"]