Commit 42ef647 1 parent d2e901e commit 42ef647 Copy full SHA for 42ef647
File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM openjdk:8 as builder
1
+ FROM adoptopenjdk:11-jdk-hotspot-bionic as builder
2
2
ADD . /code/
3
3
RUN \
4
4
apt-get update && \
@@ -13,13 +13,14 @@ RUN \
13
13
rm -Rf /code/ /root/.m2 /root/.cache /tmp/* /var/lib/apt/lists/* /var/tmp/* && \
14
14
mkdir /tmp/jhispter && mkdir /tmp/jhispter/applications
15
15
16
- FROM openjdk:8 -jre-alpine
16
+ FROM adoptopenjdk:11 -jre-hotspot
17
17
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
18
18
JHIPSTER_SLEEP=0 \
19
19
JAVA_OPTS=""
20
- RUN apk update && \
21
- apk add nodejs npm && \
22
- npm install -g generator-jhipster@6.9.0
20
+ RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
21
+ apt-get update && \
22
+ apt-get install -y nodejs yarn && \
23
+ yarn global add generator-jhipster@6.9.0
23
24
CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \
24
25
sleep ${JHIPSTER_SLEEP} && \
25
26
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /jhonline*.war
Original file line number Diff line number Diff line change 1
- FROM openjdk:8 -jre-alpine
1
+ FROM adoptopenjdk:11 -jre-hotspot
2
2
3
3
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
4
4
JHIPSTER_SLEEP=0 \
5
5
JAVA_OPTS=""
6
6
7
- RUN apk update && \
8
- apk add nodejs-current yarn && \
7
+ RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
8
+ apt-get update && \
9
+ apt-get install -y nodejs yarn && \
9
10
yarn global add generator-jhipster@6.9.0
10
11
11
12
CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \
You can’t perform that action at this time.
0 commit comments