ringojs-convenient.dockerfile 879 B

123456789101112131415161718192021
  1. FROM openjdk:8-jdk
  2. WORKDIR /ringojs_framework
  3. ENV RINGOJS_VERSION 1.1.0
  4. RUN curl -sL -O https://github.com/ringo/ringojs/releases/download/v${RINGOJS_VERSION}/ringojs-${RINGOJS_VERSION}.tar.gz
  5. RUN tar xf ringojs-${RINGOJS_VERSION}.tar.gz
  6. ENV RINGOJS_HOME /ringojs_framework/ringojs-${RINGOJS_VERSION}
  7. ENV PATH ${RINGOJS_HOME}/bin:${PATH}
  8. WORKDIR /ringojs_app
  9. COPY app app
  10. COPY config config
  11. COPY templates templates
  12. COPY ringo-convenient-main.js ringo-convenient-main.js
  13. RUN ringo-admin install grob/ringo-sqlstore
  14. RUN ringo-admin install ringo/stick
  15. RUN ringo-admin install orfon/reinhardt
  16. RUN curl -sL -o ${RINGOJS_HOME}/packages/ringo-sqlstore/jars/mysql.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar
  17. CMD ["ringo", "--production", "-J-server", "-J-Xmx1g", "-J-Xms1g", "ringo-convenient-main.js", "--host", "0.0.0.0"]