2024-05-29 03:23:10 +00:00
|
|
|
FROM adoptopenjdk/openjdk11:debianslim-jre
|
2022-02-17 15:58:22 +00:00
|
|
|
|
|
|
|
ENV FC_LANG en-US LC_CTYPE en_US.UTF-8
|
|
|
|
|
|
|
|
# dependencies
|
2024-05-29 03:23:10 +00:00
|
|
|
RUN apt-get update -yq && apt-get install -yq bash ttf-dejavu fontconfig curl openjdk-11-jre-headless && \
|
2022-02-17 15:58:22 +00:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \
|
|
|
|
mkdir -p /app/certs && \
|
|
|
|
curl https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem -o /app/certs/rds-combined-ca-bundle.pem && \
|
2024-05-29 03:23:10 +00:00
|
|
|
/opt/java/openjdk/bin/keytool -noprompt -import -trustcacerts -alias aws-rds -file /app/certs/rds-combined-ca-bundle.pem -keystore /etc/ssl/certs/java/cacerts -keypass changeit -storepass changeit && \
|
2022-02-17 15:58:22 +00:00
|
|
|
curl https://cacerts.digicert.com/DigiCertGlobalRootG2.crt.pem -o /app/certs/DigiCertGlobalRootG2.crt.pem && \
|
2024-05-29 03:23:10 +00:00
|
|
|
/opt/java/openjdk/bin/keytool -noprompt -import -trustcacerts -alias azure-cert -file /app/certs/DigiCertGlobalRootG2.crt.pem -keystore /etc/ssl/certs/java/cacerts -keypass changeit -storepass changeit && \
|
2022-02-17 15:58:22 +00:00
|
|
|
mkdir -p /plugins && chmod a+rwx /plugins && \
|
|
|
|
useradd --shell /bin/bash metabase
|
|
|
|
|
2022-02-17 18:08:58 +00:00
|
|
|
USER metabase
|
2024-05-29 03:23:10 +00:00
|
|
|
WORKDIR /app
|
2022-02-17 15:58:22 +00:00
|
|
|
|
|
|
|
# copy app from the offical image
|
2024-05-29 03:23:10 +00:00
|
|
|
COPY --from=metabase/metabase:latest /app /app
|
2022-02-17 15:58:22 +00:00
|
|
|
|
|
|
|
# expose our default runtime port
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
# run it
|
|
|
|
ENTRYPOINT ["/app/run_metabase.sh"]
|