diff --git a/Dockerfile b/Dockerfile index 64dfb36..25d75a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,16 @@ -FROM openjdk:8-jre-alpine +FROM openjdk:11-jre-slim -ENV CEREBRO_VERSION 0.8.2 +ENV CEREBRO_VERSION 0.8.3 -RUN apk add --no-cache bash \ +RUN apt-get update \ + && apt-get install -y wget \ + && rm -rf /var/lib/apt/lists/* \ && mkdir -p /opt/cerebro/logs \ && wget -qO- https://github.com/lmenezes/cerebro/releases/download/v${CEREBRO_VERSION}/cerebro-${CEREBRO_VERSION}.tgz \ | tar xzv --strip-components 1 -C /opt/cerebro \ && sed -i '//d' /opt/cerebro/conf/logback.xml \ - && addgroup -g 1000 cerebro \ - && adduser -D -G cerebro -u 1000 cerebro \ + && addgroup -gid 1000 cerebro \ + && adduser -gid 1000 -uid 1000 cerebro \ && chown -R cerebro:cerebro /opt/cerebro WORKDIR /opt/cerebro diff --git a/README.md b/README.md index 1b6530d..96f72dd 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,5 @@ docker run -p 9000:9000 lmenezes/cerebro For using a specific version run: ``` -docker run -p 9000:9000 lmenezes/cerebro:0.8.1 +docker run -p 9000:9000 lmenezes/cerebro:0.8.3 ```