...
- Open a Command Prompt, or console and create a working directory (mkdir unimus), then change into that directory (cd unimus).
- Create a sub-directory called content (mkdir content), and download a copy of Unimus.jar into the content directory.
- In the working folder, create a file called Dockerfile, with the following contents:
Code Block |
---|
FROM java:8 |
...
ADD content /usr/src/app |
...
WORKDIR /usr/src/app |
...
ENTRYPOINT ["java", "-jar", "./Unimus.jar"] |
...
EXPOSE 8085 |
- Run "docker build -t unimus ." to build an image called unimus from the current directory
- You can now run the image with the command docker run -P 8085:8085 unimus
- You should be able to access the Unimus UI by navigating to http://localhost:8085 in your web browser
...