Skip to content

Commit

Permalink
fix: replace apk with apt-get for bionic based docker images
Browse files Browse the repository at this point in the history
Related to #205
  • Loading branch information
SudharakaP committed Jul 30, 2020
1 parent d2e901e commit c1473fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
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 && \
Expand All @@ -13,12 +13,12 @@ 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 && \
RUN apt-get update && \
apt-get install nodejs-current -y && \
npm install -g [email protected]
CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \
sleep ${JHIPSTER_SLEEP} && \
Expand Down
6 changes: 3 additions & 3 deletions src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
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 apt-get update && \
apt-get install nodejs-current yarn -y && \
yarn global add [email protected]

CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \
Expand Down

0 comments on commit c1473fa

Please sign in to comment.