Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
84725d36
Unverified
Commit
84725d36
authored
2 years ago
by
Luis Paolini
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Simplify dockerfile (#27463)
Simplify the main Dockerfile removing custom circleci images
parent
d2f10e9f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+10
-5
10 additions, 5 deletions
Dockerfile
with
10 additions
and
5 deletions
Dockerfile
+
10
−
5
View file @
84725d36
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment