Last active
June 8, 2018 01:52
-
-
Save magno32/27257944acabe98abb208a03ab27a160 to your computer and use it in GitHub Desktop.
Dockerfile that creates a build environment for Metabase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:xenial | |
ENV DEBIAN_FRONTEND noninteractive | |
#Install git and java | |
RUN apt-get update && \ | |
apt-get -y install locales && \ | |
apt-get -y install \ | |
software-properties-common \ | |
sudo \ | |
openjdk-8-jdk \ | |
curl \ | |
make \ | |
git-core && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | |
ENV LANG en_US.utf8 | |
#Install nodejs | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && \ | |
apt-get install -y nodejs && \ | |
rm -rf /var/lib/apt/lists/* | |
#Install yarn | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \ | |
apt-get update && apt-get -y install yarn && \ | |
rm -rf /var/lib/apt/lists/* | |
#Install Leiningen | |
RUN curl https://raw.githubusercontent.com/technomancy/leiningen/2.7.1/bin/lein --output /usr/bin/lein && \ | |
chmod a+x /usr/bin/lein | |
ENV LEIN_ROOT 1 | |
RUN git clone https://github.com/metabase/metabase.git metabase | |
WORKDIR "metabase" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment