Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Last active February 26, 2022 11:57
Show Gist options
  • Save JaniKibichi/1629b722185a243110bfee7824c223fd to your computer and use it in GitHub Desktop.
Save JaniKibichi/1629b722185a243110bfee7824c223fd to your computer and use it in GitHub Desktop.
Dockerfile for Localhost with SBT
FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive
LABEL JaniKibichi <[email protected]>
#ENSURE SYSTEM IS UP-TO-DATE:
RUN echo '\n\nENSURE SYSTEM IS UP-TO-DATE =======================================\n\n'
RUN apt-get update && apt-get upgrade
#INSTALL OPENJDK-11-JDK
RUN echo '\n\nINSTALL OPENJDK-11-JDK =======================================\n\n'
RUN apt-get install openjdk-11-jdk -y
#SET UP GIT & CURL & GNUPG
RUN echo '\n\nSET UP GIT & CURL & GNUPG =======================================\n\n'
RUN apt-get install git curl gnupg -yqq
RUN git --version
#SET UP SBT
RUN echo '\n\nSET UP SBT =======================================\n\n'
RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
RUN curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | apt-key add
RUN apt-get update
RUN apt-get install sbt
#INSTALL NODE & NPM
RUN echo '\n\nINSTALL NODE & NPM =======================================\n\n'
RUN apt-get install -y curl software-properties-common
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN node -v && npm -v
#INSTALL RUBY
RUN echo '\n\nINSTALL RUBY =======================================\n\n'
RUN apt update && apt install -y ruby-full
#INSTALL HEROKU TOOLBELT
RUN echo '\n\nINSTALL HEROKU TOOLBELT =======================================\n\n'
RUN curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
#DOCKER IN DOCKER
RUN echo '\n\nDOCKER IN DOCKER =======================================\n\n'
RUN curl -sSL https://get.docker.com/ | sh
#MAKE WORKDIR & COPY LOCAL FILES TO WORKDIR
RUN echo '\n\nMAKE WORKDIR & COPY LOCAL FILES TO WORKDIR =======================================\n\n'
WORKDIR /bboxxv2
COPY ./local-bboxxv2 /bboxxv2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment