Guest User

Untitled

a guest
Dec 15th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. FROM ruby:2.4.2-alpine
  2.  
  3. RUN apk add --update \
  4. build-base \
  5. postgresql-dev \
  6. nodejs \
  7. tzdata \
  8. && rm -rf /var/cache/apk/* && \
  9. cp /usr/share/zoneinfo/US/Eastern /etc/localtime && \
  10. echo "US/Eastern" > /etc/timezone
  11.  
  12. ENV APP_HOME /app/
  13. ENV BUNDLE_JOBS 40
  14. COPY ./init.sh $APP_HOME
  15.  
  16. COPY ./driven/Gemfil* $APP_HOME
  17.  
  18. WORKDIR $APP_HOME
  19.  
  20. RUN gem install bundler --pre && \
  21. bundle config build.nokogiri && \
  22. bundle check --path vendor/bundle || bundle install --path vendor/bundle && \
  23. bundle clean
  24.  
  25. COPY ./driven $APP_HOME
  26.  
  27.  
  28. EXPOSE 80
  29.  
  30. CMD ["sh", "init.sh"]
Add Comment
Please, Sign In to add comment