File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM openjdk:11-jre-slim
1
+ FROM openjdk:11-jre-slim as builder
2
2
3
3
ENV CEREBRO_VERSION 0.9.4
4
4
5
5
RUN apt-get update \
6
6
&& apt-get install -y wget \
7
- && rm -rf /var/lib/apt/lists/* \
8
7
&& mkdir -p /opt/cerebro/logs \
9
8
&& wget -qO- https://github.com/lmenezes/cerebro/releases/download/v${CEREBRO_VERSION}/cerebro-${CEREBRO_VERSION}.tgz \
10
9
| tar xzv --strip-components 1 -C /opt/cerebro \
11
- && sed -i '/<appender-ref ref="FILE"\/ >/d' /opt/cerebro/conf/logback.xml \
12
- && addgroup -gid 1000 cerebro \
13
- && adduser -gid 1000 -uid 1000 cerebro \
14
- && chown -R cerebro:cerebro /opt/cerebro
10
+ && sed -i '/<appender-ref ref="FILE"\/ >/d' /opt/cerebro/conf/logback.xml
11
+
12
+ FROM openjdk:11.0.13-jre-slim
13
+
14
+ COPY --from=builder /opt/cerebro /opt/cerebro
15
+
16
+ RUN addgroup -gid 1000 cerebro \
17
+ && adduser -q --system --no-create-home --disabled-login -gid 1000 -uid 1000 cerebro \
18
+ && chown -R root:root /opt/cerebro \
19
+ && chown -R cerebro:cerebro /opt/cerebro/logs \
20
+ && chown cerebro:cerebro /opt/cerebro
15
21
16
22
WORKDIR /opt/cerebro
17
23
USER cerebro
You can’t perform that action at this time.
0 commit comments