Initial Rails test app
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user