Skip to content
Snippets Groups Projects
Unverified Commit 84725d36 authored by Luis Paolini's avatar Luis Paolini Committed by GitHub
Browse files

Simplify dockerfile (#27463)

Simplify the main Dockerfile removing custom circleci images
parent d2f10e9f
No related merge requests found
......@@ -2,13 +2,18 @@
# STAGE 1: builder
###################
FROM metabase/ci:java-11-clj-1.11.0.1100.04-2022-build as builder
FROM node:16-slim as builder
ARG MB_EDITION=oss
WORKDIR /home/circleci
WORKDIR /home/node
COPY --chown=circleci . .
RUN apt-get update && apt-get upgrade -y && apt-get install openjdk-11-jdk curl git -y \
&& curl -O https://download.clojure.org/install/linux-install-1.11.0.1100.sh \
&& chmod +x linux-install-1.11.0.1100.sh \
&& ./linux-install-1.11.0.1100.sh
COPY . .
RUN INTERACTIVE=false CI=true MB_EDITION=$MB_EDITION bin/build
# ###################
......@@ -35,11 +40,11 @@ RUN apk add -U bash ttf-dejavu fontconfig curl java-cacerts && \
mkdir -p /plugins && chmod a+rwx /plugins
# add Metabase script and uberjar
COPY --from=builder /home/circleci/target/uberjar/metabase.jar /app/
COPY --from=builder /home/node/target/uberjar/metabase.jar /app/
COPY bin/docker/run_metabase.sh /app/
# expose our default runtime port
EXPOSE 3000
# run it
ENTRYPOINT ["/app/run_metabase.sh"]
ENTRYPOINT ["/app/run_metabase.sh"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment