Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM openjdk:8

# This isn't more efficient because ./build.sh will still download gradle
#FROM gradle:jdk8

RUN apt-get update
RUN apt-get -y install nodejs npm
RUN npm install npm@latest -g

WORKDIR /ship
COPY . .

ENV VERSION 1.0-RC1

# Run in a single container to reuse gradle daemon
RUN ./build.sh clean \
&& ./build.sh deps \
&& ./build.sh npm \
&& ./build.sh gradle \
&& ./build.sh assemble

ENV PATH /ship/assembly/build/distributions/ship-$VERSION/bin:$PATH

CMD ["ship"]