Skip to content

Commit

Permalink
update dockerfile to use 0.8.3 and openjdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
moliware committed Apr 5, 2019
1 parent da2750b commit dc407c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 '/<appender-ref ref="FILE"\/>/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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit dc407c3

Please sign in to comment.