Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Dockerfile for Gradle
  • Loading branch information
ShaneMcC committed Jan 15, 2017
1 parent 12c0373 commit ce63c1f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
@@ -1,22 +1,16 @@
FROM java:8-jdk
MAINTAINER Shane Mc Cormack <dataforce@dataforce.org.uk>

RUN \
apt-get update && \
apt-get -y install ant && \
rm -rf /var/lib/apt/lists/*

COPY . /dfbnc/

RUN \
cd /dfbnc && \
if [ -e .git/shallow ]; then git fetch --unshallow; fi && \
git fetch --tags && \
git submodule update --init --recursive && \
ant jar && \
./gradlew jar && \
mv /dfbnc/dist/dfbnc.jar / && \
rm -rf /dfbnc && \
apt-get -y purge ant
rm -rf /dfbnc

EXPOSE 33262 33263

Expand Down

0 comments on commit ce63c1f

Please sign in to comment.