Initial Rails test app

This commit is contained in:
Min Zeya Phyo
2026-01-15 12:26:30 +06:30
commit 1733430341
19 changed files with 418 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM ruby:3.2-slim
RUN apt-get update -qq && \
apt-get install -y build-essential libmariadb-dev git curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
RUN bundle exec rails assets:precompile 2>/dev/null || true
EXPOSE 3000
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]