-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace apk with apt-get for bionic based docker images
Related to #205
- Loading branch information
1 parent
d2e901e
commit 337efcf
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM openjdk:8 as builder | ||
FROM adoptopenjdk:11-jdk-hotspot-bionic as builder | ||
ADD . /code/ | ||
RUN \ | ||
apt-get update && \ | ||
|
@@ -13,13 +13,16 @@ RUN \ | |
rm -Rf /code/ /root/.m2 /root/.cache /tmp/* /var/lib/apt/lists/* /var/tmp/* && \ | ||
mkdir /tmp/jhispter && mkdir /tmp/jhispter/applications | ||
|
||
FROM openjdk:8-jre-alpine | ||
FROM adoptopenjdk:11-jre-hotspot | ||
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ | ||
JHIPSTER_SLEEP=0 \ | ||
JAVA_OPTS="" | ||
RUN apk update && \ | ||
apk add nodejs npm && \ | ||
npm install -g [email protected] | ||
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \ | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | ||
apt-get update && \ | ||
apt-get install -y nodejs yarn && \ | ||
yarn global add [email protected] | ||
CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \ | ||
sleep ${JHIPSTER_SLEEP} && \ | ||
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /jhonline*.war | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
FROM openjdk:8-jre-alpine | ||
FROM adoptopenjdk:11-jre-hotspot | ||
|
||
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ | ||
JHIPSTER_SLEEP=0 \ | ||
JAVA_OPTS="" | ||
|
||
RUN apk update && \ | ||
apk add nodejs-current yarn && \ | ||
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \ | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ | ||
apt-get update && \ | ||
apt-get install -y nodejs yarn && \ | ||
yarn global add [email protected] | ||
|
||
CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \ | ||
|