2015-07-21 10:33:31 -04:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN export LANG=en_US.UTF-8 && \
|
|
|
|
export LANGUAGE=en_US.UTF-8 && \
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
|
|
|
|
RUN apk update \
|
2016-10-05 20:56:09 -04:00
|
|
|
&& apk add build-base ruby-dev sqlite-dev ca-certificates \
|
2015-07-21 10:33:31 -04:00
|
|
|
&& apk add ruby ruby-bundler ruby-io-console \
|
|
|
|
&& rm -rf /var/cache/apk*
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY Gemfile* ./
|
|
|
|
RUN bundle install --path=vendor/bundle --jobs=4 --without=development test
|
|
|
|
COPY . /app
|
|
|
|
|
2016-07-26 19:38:05 -04:00
|
|
|
EXPOSE 9292
|
2015-07-21 10:33:31 -04:00
|
|
|
CMD bundle exec rackup -o 0.0.0.0
|