Skip to content

Commit e6dc25f

Browse files
committed
upgraded rails, mysql and redis versions
1 parent 3337188 commit e6dc25f

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

docker/8.0/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ruby:3.4.4
2+
3+
RUN apt-get update -qq && apt-get install -y nodejs
4+
5+
COPY Gemfile /app/Gemfile
6+
7+
WORKDIR /app
8+
9+
RUN bundle install
10+
11+
# Add a script to be executed every time the container starts.
12+
COPY entrypoint.sh /usr/bin/
13+
14+
RUN chmod +x /usr/bin/entrypoint.sh
15+
16+
ENTRYPOINT ["entrypoint.sh"]
17+
EXPOSE 9000

docker/8.0/Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
gem 'rails', '~> 8.0', '>= 8.0.2'
3+
gem 'redis', '~> 5.4'
4+
gem 'mysql2', '~> 0.5.6'

docker/8.0/entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Remove a potentially pre-existing server.pid for Rails.
5+
rm -f /app/tmp/pids/server.pid
6+
7+
# Then exec the container's main process (what's set as CMD in the Dockerfile).
8+
exec "$@"

0 commit comments

Comments
 (0)