FROM ruby:alpine RUN apk add make gcc libc-dev WORKDIR /app ADD gems.rb gems.locked ./ RUN bundle ADD config.ru ./ ADD *.rb ./ ADD index.html.erb ./ WORKDIR /app/public ADD saca-sapos ./ RUN tar czf saca-sapos.tar.gz saca-sapos WORKDIR /app EXPOSE 4567 CMD ["puma", "-p", "4567"]