-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Dockerfile for global CNet CI integration
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
FROM gradle:4.4.0-jdk8 | ||
|
||
# For permissions issues | ||
USER root | ||
|
||
# Copy necessary files in /app | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
# Replace cached gradle dependencies with the ones in the repo | ||
COPY ./minecraft /home/gradle/.gradle/caches/minecraft | ||
|
||
# Set up the workspace at build time so the runtime doesn't have to | ||
RUN ./gradlew setupCIWorkspace | ||
|
||
# Entrypoint for the container is either the command passed to docker run.. | ||
ENTRYPOINT [ "/bin/bash", "-l", "-c" ] | ||
# ..or the default command that will run the build script | ||
# The update_and_build.sh script is located in the ElectricalAge repo | ||
CMD [ "./update_and_build.sh" ] |