Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Dockerfile: create the image for jdbc testing ('local-dbtest')
- FROM openjdk:8-jdk-alpine
- RUN mkdir /code
- COPY ./*.java /code
- RUN mkdir /opt
- ADD https://jdbc.postgresql.org/download/postgresql-42.1.4.jar /opt
- #COPY ./postgresql-42.1.4.jar /opt
- RUN cd /code && javac DBTest.java
- CMD java -classpath "/code:/opt/*" DBTest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement