diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..95ff9bc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM openjdk:8-jre-alpine + +ENV CEREBRO_VERSION 0.8.1 + +RUN apk add --no-cache bash \ + && 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 \ + && chown -R cerebro:cerebro /opt/cerebro + +WORKDIR /opt/cerebro +EXPOSE 9000 +USER cerebro +ENTRYPOINT [ "/opt/cerebro/bin/cerebro" ] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c51c9a9 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +cerebro-docker +-------------- + +cerebro-docker contains the official docker files for [cerebro](https://github.com/lmenezes/cerebro) +