Docker IntelliJ
npm install touch-cli -g
touch Dockerfile
FROM openjdk:8u212-jdk-slim
LABEL maintainer="[email protected]"
VOLUME /tmp
EXPOSE 8080
ARG JAR_FILE=target/codestatebkend-0.0.1-SNAPSHOT.jar
ADD ${JAR_FILE} codestatebkend.jar
Run the jar file
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/codestatebkend.jar"]
docker build -t <appname> .
Recommended Posts