-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ruby:2.7.2-alpine
RUN apk add --no-cache --update build-base \
linux-headers \
git \
mysql-dev \
nodejs \
tzdata \
ruby-dev \
yarn \
python2 \
g++ \
make
RUN gem install bundler
WORKDIR /app
COPY .ruby-version ./
COPY Gemfile* ./
RUN bundle config set force_ruby_platform true
RUN bundle install
COPY . .
RUN bundle exec rails webpacker:install
RUN rails assets:precompile
EXPOSE 3000
CMD ["bundle", "exec", "bin/rails", "server", "-b", "0.0.0.0"]