Skip to content

Commit

Permalink
Merge pull request #1 from jeci-sarl/change/add-dockerfile
Browse files Browse the repository at this point in the history
Use gradle:6.8-jdk11 as builder image
  • Loading branch information
jonbullock authored May 12, 2021
2 parents 23db1fa + 6eabead commit ca60e6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/jbake-dist
/dist
.gradle
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM adoptopenjdk/openjdk11:alpine as builder
FROM gradle:6.8-jdk11 as builder

LABEL maintainer="https://jbake.org/community/team.html"

Expand All @@ -10,7 +10,7 @@ COPY . /usr/src/jbake
RUN set -o errexit -o nounset \
&& echo "Building JBake" \
&& cd /usr/src/jbake \
&& ./gradlew installDist \
&& gradle --no-daemon installDist \
&& cp -r jbake-dist/build/install/jbake/* $JBAKE_HOME \
&& rm -r ~/.gradle /usr/src/jbake

Expand Down

0 comments on commit ca60e6b

Please sign in to comment.