-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also pin final image on tagged alpine version ~50 ish mb size reduction
- Loading branch information
Showing
1 changed file
with
17 additions
and
7 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,17 +1,27 @@ | ||
FROM alpine:latest | ||
LABEL MAINTAINER ant@manchestermonkey.co.uk | ||
ARG CEREBROVER=0.9.4 | ||
|
||
RUN apk update && apk add bash openjdk8-jre | ||
FROM alpine:latest as builder | ||
|
||
ENV CEREBRO_VER 0.9.4 | ||
ARG CEREBROVER | ||
ENV CEREBRO_VER=$CEREBROVER | ||
|
||
ADD https://github.com/lmenezes/cerebro/releases/download/v${CEREBRO_VER}/cerebro-${CEREBRO_VER}.tgz / | ||
|
||
RUN mkdir /cerebro && tar -zxf cerebro-${CEREBRO_VER}.tgz --strip-components 1 -C /cerebro | ||
|
||
WORKDIR /cerebro | ||
|
||
EXPOSE 9000 | ||
FROM alpine:3.17 | ||
LABEL MAINTAINER ant@manchestermonkey.co.uk | ||
|
||
ARG CEREBROVER | ||
ENV CEREBRO_VER=$CEREBROVER | ||
|
||
RUN apk add --no-cache bash openjdk8-jre | ||
|
||
COPY --from=builder /cerebro /cerebro | ||
|
||
WORKDIR /cerebro | ||
|
||
ENTRYPOINT ["/cerebro/bin/cerebro"] | ||
EXPOSE 9000/tcp | ||
|
||
ENTRYPOINT ["/cerebro/bin/cerebro"] |