Dockerfile 367 B

123456789101112131415161718192021
  1. FROM ruby:2.3-slim
  2. MAINTAINER Ray Lee <ray-lee@kdanmobile.com>
  3. RUN apt-get update -qq && apt-get install -y build-essential
  4. ENV LANG=C.UTF-8
  5. ENV PROJECT_ROOT /multi-lang-trans
  6. RUN mkdir -p $PROJECT_ROOT
  7. WORKDIR $PROJECT_ROOT
  8. COPY . .
  9. RUN gem install nokogiri
  10. VOLUME ["$PROJECT_ROOT/input", "$PROJECT_ROOT/output", "$PROJECT_ROOT/template"]
  11. CMD ruby main.rb