Skip to content

Commit b64c680

Browse files
committed
Remove gcc and g++ for decreasing the size
1 parent 1f093d4 commit b64c680

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

scripts/docker/zeppelin-base/Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,20 @@
1717
FROM alpine:3.4
1818
MAINTAINER Apache Software Foundation <[email protected]>
1919

20-
ENV SCALA_VERSION="2.11.8"
21-
ENV SCALA_HOME="/usr/share/scala"
2220
ENV JAVA_HOME /usr/lib/jvm/java-1.7-openjdk
2321
ENV PATH $PATH:$JAVA_HOME/bin
2422

2523
RUN apk add --update bash curl openjdk7-jre wget ca-certificates python build-base make gcc g++ java-cacerts openssl && \
2624
rm /usr/lib/jvm/java-1.7-openjdk/jre/lib/security/cacerts && \
2725
ln -s /etc/ssl/certs/java/cacerts /usr/lib/jvm/java-1.7-openjdk/jre/lib/security/cacerts && \
28-
cd "/tmp" && \
29-
wget "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
30-
tar xzf "scala-${SCALA_VERSION}.tgz" && \
31-
mkdir "${SCALA_HOME}" && \
32-
rm "/tmp/scala-${SCALA_VERSION}/bin/"*.bat && \
33-
mv "/tmp/scala-${SCALA_VERSION}/bin" "/tmp/scala-${SCALA_VERSION}/lib" "${SCALA_HOME}" && \
34-
ln -s "${SCALA_HOME}/bin/"* "/usr/bin/" && \
35-
rm -rf "/tmp/"* && \
3626
curl --silent \
3727
--location https://github.com/sgerrand/alpine-pkg-R/releases/download/3.3.1-r0/R-3.3.1-r0.apk --output /var/cache/apk/R-3.3.1-r0.apk && \
3828
apk add --update --allow-untrusted /var/cache/apk/R-3.3.1-r0.apk && \
3929
curl --silent \
4030
--location https://github.com/sgerrand/alpine-pkg-R/releases/download/3.3.1-r0/R-dev-3.3.1-r0.apk --output /var/cache/apk/R-dev-3.3.1-r0.apk && \
4131
apk add --update --allow-untrusted /var/cache/apk/R-dev-3.3.1-r0.apk && \
4232
R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')" && \
33+
apk del curl build-base make gcc g++ && \
4334
rm -rf /var/cache/apk/*
4435

4536
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64
@@ -51,4 +42,4 @@ RUN chmod a+x /usr/bin/start-zeppelin.sh
5142
# ports for zeppelin
5243
EXPOSE 8080 7077
5344

54-
ENTRYPOINT ["/usr/local/bin/dumb-init"]
45+
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]

0 commit comments

Comments
 (0)