Docker – Java – OpenJDK


docker pull openjdk:slim
docker ps
docker run -it openjdk:slim java -version
docker run -it openjdk:slim /bin/bash
docker build -t fireanote-api .
docker stop


matto_000 /projects/fireanote/fireanote-api
$ cat DockerFile
FROM openjdk:8-jdk-slim
COPY ./target/fireanote-api.war /usr/app/
WORKDIR /usr/app
# RUN java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar /usr/app/fireanote-api.war
CMD ["java", "-Xms128m", "-Xmx256m", "-jar", "/usr/app/fireanote-api.war"]

Setting up docker and fireanote api
Setting up docker and fireanote api