Closed SemenMartynov closed 6 years ago
I can't run your project. Can you fix it?
$ docker build -t validation-service github.com/OlesyaIv/jsonValidator && docker run -t --rm -p 80:80 validation-service
Sending build context to Docker daemon 1.629 MB
Step 1/3 : FROM openjdk:8-jdk-alpine
8-jdk-alpine: Pulling from library/openjdk
Digest: sha256:c5c705b462abab858066d412b3f871865684d8f837571c98b68e78c505dc7549
Status: Downloaded newer image for openjdk:8-jdk-alpine
---> 224765a6bdbe
Step 2/3 : CMD java -jar target/jsonvalidator-0.1-jar-with-dependencies.jar
---> Running in 4e28d00db51d
---> 6bfad98bfb27
Removing intermediate container 4e28d00db51d
Step 3/3 : EXPOSE 80
---> Running in 61a35716443e
---> b4bc5ed3f899
Removing intermediate container 61a35716443e
Successfully built b4bc5ed3f899
Error: Unable to access jarfile target/jsonvalidator-0.1-jar-with-dependencies.jar
Good work!
https://github.com/OlesyaIv/jsonValidator/blob/b6a507235ba7889701c851686d8e8f6de1e53161/Dockerfile#L1
See details here https://github.com/SemenMartynov/SPbPU_TRPO_2017/blob/master/Task01.RUS.txt#L11