Skip to content

Commit e095f12

Browse files
committed
Replace rails image (deprecated) with one based on ruby
1 parent 3dcdcc6 commit e095f12

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.1
1+
2.7.4

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
FROM rails:onbuild
1+
FROM ruby:2.7.4
2+
3+
RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash -
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
build-essential libpq-dev libmariadb-dev sqlite3 libsqlite3-dev nodejs
6+
7+
WORKDIR /usr/src/app
8+
COPY Gemfile* ./
9+
RUN bundle install
10+
COPY . .
11+
12+
EXPOSE 3000
13+
CMD ["rails", "server", "-b", "0.0.0.0"]

0 commit comments

Comments
 (0)