Added support for Ruby v2 Specialization (#1101)

* Added support for Ruby v2 Specialization
* Added ruby v2 example with builder code
This commit is contained in:
Brendan Stennett
2019-03-13 22:55:26 +08:00
committed by Ta-Ching Chen
parent f104f0b46b
commit c717f182b6
12 changed files with 153 additions and 19 deletions
+5 -10
View File
@@ -1,16 +1,11 @@
FROM ruby:2.4.1
FROM ruby:2.6.1-alpine3.9
RUN apt-get update -qq && apt-get install -y build-essential
RUN mkdir /app
WORKDIR /app
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle install
RUN apk update
RUN apk add --no-cache build-base
COPY . /app
EXPOSE 8888
WORKDIR /app
RUN bundle install
ENTRYPOINT ["ruby"]
CMD ["server.rb"]