sapo-videos/Dockerfile

20 lines
295 B
Docker

FROM ruby:alpine
RUN apk add make gcc libc-dev libpq-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"]