-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (21 loc) · 897 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
24
25
26
27
28
29
30
31
32
FROM ubuntu:18.04
MAINTAINER AMOL_DUMBRE
RUN apt-get update && apt-get install -y nodejs gpg libpq-dev sudo nano libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
#RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
#7D2BAF1CF37B13E2069D6956105BD0E739499BDB \
RUN curl -sSL https://get.rvm.io | bash -s stable \
&& source ~/.rvm/scripts/rvm \
&& rvm install 2.6.3 \
&& rvm use 2.6.3 --default \
&& ruby -v
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD . /myapps/backend/myrailsapi
WORKDIR /myapps/backend/myrailsapi
COPY ./backend/myrailsapi/Gemfile /myapps/backend/myrailsapi/Gemfile
COPY ./backend/myrailsapi/Gemfile.lock /myapps/backend/myrailsapi/Gemfile.lock
RUN gem install bundler
RUN bundle install
RUN gem install rails -v 6.0.0
COPY . /myapps/backend/myrailsapi/
RUN sudo chmod 777 *