|
@@ -1,4 +1,5 @@
|
|
|
-FROM techempower/resin-java8:0.1
|
|
|
+FROM openjdk:8-jdk
|
|
|
+
|
|
|
WORKDIR /grails
|
|
|
COPY grails-app grails-app
|
|
|
COPY web-app web-app
|
|
@@ -9,7 +10,7 @@ ENV GRAILS_HOME /grails/grails-${GRAILS_VERSION}
|
|
|
ENV GRAILS_WORK_DIR ${GRAILS_HOME}/.grails
|
|
|
ENV GRAILS_AGENT_CACHE_DIR ${GRAILS_WORK_DIR}/.slcache
|
|
|
|
|
|
-RUN curl -sL -O http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-${GRAILS_VERSION}.zip
|
|
|
+RUN curl -sL -O https://github.com/grails/grails-core/releases/download/v${GRAILS_VERSION}/grails-${GRAILS_VERSION}.zip
|
|
|
RUN unzip -q grails-${GRAILS_VERSION}.zip
|
|
|
ENV PATH ${GRAILS_HOME}/bin:${PATH}
|
|
|
|
|
@@ -17,5 +18,8 @@ RUN grails -Dgrails.work.dir=${GRAILS_WORK_DIR} -non-interactive -plain-output r
|
|
|
RUN grails -Dgrails.work.dir=${GRAILS_WORK_DIR} -non-interactive -plain-output compile
|
|
|
RUN grails -Dgrails.work.dir=${GRAILS_WORK_DIR} prod -non-interactive -plain-output war
|
|
|
|
|
|
-RUN cp target/hello-0.1.war ${RESIN_HOME}/webapps/ROOT.war
|
|
|
-CMD java -jar ${RESIN_HOME}/lib/resin.jar console
|
|
|
+WORKDIR /resin
|
|
|
+RUN curl -sL http://www.caucho.com/download/resin-4.0.55.tar.gz | tar xz --strip-components=1
|
|
|
+RUN rm -rf webapps/*
|
|
|
+RUN cp /grails/target/hello-0.1.war webapps/ROOT.war
|
|
|
+CMD ["java", "-jar", "lib/resin.jar", "console"]
|