Add sample rails + postgresql application

Signed-off-by: Alex Koch <alex@esparklearning.com>
This commit is contained in:
Alex Koch
2022-09-15 10:14:13 -05:00
parent d9bea6d801
commit bbad983a6e
84 changed files with 1570 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
FROM ruby:3.1
WORKDIR /app
RUN useradd -m app && chown app:app /app
RUN apt-get update -qq && apt-get install -y --no-install-recommends postgresql-client
USER app
COPY --chown=app:app Gemfile* .
RUN bundle install
COPY --chown=app:app . .
EXPOSE 3000
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]