mywillpower.org/Dockerfile

22 lines
325 B
Docker
Raw Normal View History

2022-02-13 02:01:37 -05:00
FROM ruby:3.1
# Move it
WORKDIR /opt
2022-02-20 03:15:04 -05:00
COPY config/ ./config/
2022-02-13 02:01:37 -05:00
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
2022-02-20 03:15:04 -05:00
CMD ["bundle", "exec", "puma", "-e", "production"]