Help Creating First Docker Container - Complete Newbie

Hi all!

I’ve been using Docker to run applications for about a year or so, but I’ve only ever used ones that have been premade. I’m looking to create my own container for the following java app:

I understand that I need to do three things to get it to run:

Install Java 8 - sudo apt install openjdk-8-jre-headless
Install BIND9 (https://raw.githubusercontent.com/Pugmatt/BedrockConnect/master/scripts/install-bind.sh) - sudo install-bind.sh [IP]
The download and run BedrockConnect from the Github release page

I’ve looked at a few tutorials, and have made a docker file, but I’m 100% certain it’s completely wrong - but I’m not sure where I can look to try to get some more answers. If someone would be able to shed some light on this, or point me in the right direction it would be greatly appreciated. I’m a complete newbie and I’m at a loss.

This is what I have so far

FROM ubuntu:latest

RUN apt-get update
RUN apt-get install openjdk-8-jre-headless
RUN curl https://raw.githubusercontent.com/Pugmatt/BedrockConnect/master/scripts/install-bind.sh
RUN curl https://github.com/Pugmatt/BedrockConnect/releases/download/1.6.2/BedrockConnect-1.0-SNAPSHOT.jar
CMD ./install-bind.sh 192.168.1.153
CMD java -jar ./BedrockConnect-1.0-SNAPSHOT.jar nodb=true