Skip to content

Commit

Permalink
Use maven artefacts to build docker image CIRC-58
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjohnson-kint committed Dec 31, 2017
1 parent 3b17a32 commit 1b387d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ENV VERTICLE_FILE mod-circulation.jar
ENV VERTICLE_HOME /usr/verticles

# Copy your fat jar to the container
COPY build/libs/${VERTICLE_FILE} ${VERTICLE_HOME}/${VERTICLE_FILE}
COPY target/${VERTICLE_FILE} ${VERTICLE_HOME}/${VERTICLE_FILE}

# Expose this port locally in the container.
EXPOSE 9801
2 changes: 1 addition & 1 deletion build-docker-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

gradle fatJar
mvn clean package -q -Dmaven.test.skip=true || exit 1

docker build -t mod-circulation .

0 comments on commit 1b387d4

Please sign in to comment.