Skip to content
Snippets Groups Projects
Commit d3739f3e authored by Thomas's avatar Thomas
Browse files

Updated docker deploy

parent 60ffb118
Branches
No related tags found
No related merge requests found
FROM alpine-java:base FROM alpine:edge
MAINTAINER gltron MAINTAINER gltron
RUN apk --update add openjdk8-jre
COPY mozen/target/mozen-0.0.1-SNAPSHOT.jar /home/mozen-0.0.1-SNAPSHOT.jar COPY mozen/target/mozen-0.0.1-SNAPSHOT.jar /home/mozen-0.0.1-SNAPSHOT.jar
CMD ["java","-jar","/home/mozen-0.0.1-SNAPSHOT.jar"] CMD ["java","-jar","/home/mozen-0.0.1-SNAPSHOT.jar"]
EXPOSE 8181 EXPOSE 8181
\ No newline at end of file
./quickBuildToJar.sh
docker build . -t gltron/mozen docker build . -t gltron/mozen
docker run -d -p 8007:8181 gltron/mozen docker run --name mozen -d -p 8007:8181 gltron/mozen
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment