mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-11 10:46:52 +00:00

* fix: Reduce gms docker image size to 254MB from 1.15GB * fix: Reduce frontend docker image size to 294MB from 2.68GB
29 lines
944 B
Docker
29 lines
944 B
Docker
FROM openjdk:8 as builder
|
|
|
|
MAINTAINER Kerem Sahin ksahin@linkedin.com
|
|
|
|
RUN apt-get update && apt-get install -y wget \
|
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
|
&& dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
|
|
|
|
ENV CI=true
|
|
|
|
COPY . datahub-src
|
|
RUN cd datahub-src && ./gradlew :datahub-frontend:dist \
|
|
&& cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip \
|
|
&& cd .. && rm -rf datahub-src && unzip datahub-frontend.zip
|
|
|
|
FROM openjdk:8-jre-alpine
|
|
|
|
COPY --from=builder /datahub-frontend /datahub-frontend/
|
|
EXPOSE 9001
|
|
|
|
ENV JAVA_OPTS=" \
|
|
-Xms512m \
|
|
-Xmx1024m \
|
|
-Dhttp.port=9001 \
|
|
-Dconfig.file=datahub-frontend/conf/application.conf \
|
|
-Djava.security.auth.login.config=datahub-frontend/conf/jaas.conf \
|
|
-Dlogback.configurationFile=datahub-frontend/conf/logback.xml \
|
|
-Dlogback.debug=true"
|
|
CMD ["datahub-frontend/bin/playBinary"] |