-
Notifications
You must be signed in to change notification settings - Fork 344
/
Dockerfile
23 lines (16 loc) · 661 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use the official Ruby image because the Rails images have been deprecated
FROM ruby:2.7.5
RUN apt-get update \
&& apt-get install -y --no-install-recommends postgresql-client \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /usr/local/node \
&& curl -L https://nodejs.org/dist/v4.4.7/node-v4.4.7-linux-x64.tar.xz | tar Jx -C /usr/local/node --strip-components=1
RUN ln -s ../node/bin/node /usr/local/bin/
WORKDIR /ohana-api
COPY Gemfile /ohana-api
COPY Gemfile.lock /ohana-api
RUN gem install bundler
RUN bundle install --jobs 20 --retry 5 --without production
COPY . /ohana-api
EXPOSE 8080
CMD ["rails", "server", "-b", "0.0.0.0", "-p", "8080"]