mywillpower.org/Dockerfile
2022-02-20 03:07:15 -05:00

21 lines
316 B
Docker

FROM ruby:3.1
# Move it
WORKDIR /opt
COPY public/ ./public/
COPY views/ ./views/
COPY Gemfile .
COPY config.ru .
COPY mywillpower.rb .
# Dependencies
RUN apt-get update
RUN apt-get -y upgrade
RUN bundle install
# Environment
EXPOSE 4567
# Send it
CMD ["bundle", "exec", "puma", "-p", "4567", "-e", "production"]