commit 92842187489014f584f0a6f3312c14d31bd09f27 Author: Trevor Robinson Date: Thu Feb 17 09:58:22 2022 -0600 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..80367e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +# From https://github.com/metabase/metabase/issues/13119#issuecomment-1000350647 + +FROM ubuntu:21.04 + +ENV FC_LANG en-US LC_CTYPE en_US.UTF-8 + +# dependencies +RUN apt-get update -yq && apt-get install -yq bash fonts-dejavu-core fonts-dejavu-extra fontconfig curl openjdk-11-jre-headless && \ + 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 && \ + 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 && \ + curl https://cacerts.digicert.com/DigiCertGlobalRootG2.crt.pem -o /app/certs/DigiCertGlobalRootG2.crt.pem && \ + keytool -noprompt -import -trustcacerts -alias azure-cert -file /app/certs/DigiCertGlobalRootG2.crt.pem -keystore /etc/ssl/certs/java/cacerts -keypass changeit -storepass changeit && \ + mkdir -p /plugins && chmod a+rwx /plugins && \ + useradd --shell /bin/bash metabase + + +WORKDIR /app + +# copy app from the offical image +COPY --from=metabase/metabase:latest /app /app + +RUN chown -R metabase /app + +USER metabase +# expose our default runtime port +EXPOSE 3000 + +# run it +ENTRYPOINT ["/app/run_metabase.sh"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..e839ea5 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# metabase-arm64 + +arm64-compatible image of [metabase](https://hub.docker.com/r/metabase/metabase) + +Based on https://github.com/metabase/metabase/issues/13119#issuecomment-1000350647