2023-07-28 09:37:52 +00:00
|
|
|
FROM ruby:alpine
|
|
|
|
|
|
|
|
RUN apk add make gcc libc-dev
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
ADD gems.rb gems.locked ./
|
|
|
|
RUN bundle
|
|
|
|
|
2023-07-28 10:11:05 +00:00
|
|
|
ADD config.ru ./
|
2023-07-28 09:37:52 +00:00
|
|
|
ADD *.rb ./
|
|
|
|
ADD index.html.erb ./
|
2023-07-28 11:00:41 +00:00
|
|
|
|
|
|
|
WORKDIR /app/public
|
2023-07-28 09:37:52 +00:00
|
|
|
ADD saca-sapos ./
|
2023-07-28 11:00:41 +00:00
|
|
|
RUN tar czf saca-sapos.tar.gz saca-sapos
|
|
|
|
WORKDIR /app
|
2023-07-28 09:37:52 +00:00
|
|
|
|
|
|
|
EXPOSE 4567
|
2023-07-28 10:09:23 +00:00
|
|
|
CMD ["puma", "-p", "4567"]
|