Skip to content

Commit

Permalink
Fixed Dockerfile for global CNet CI integration
Browse files Browse the repository at this point in the history
  • Loading branch information
axalppro committed May 10, 2024
1 parent c9481f3 commit b38aaef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
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" ]

0 comments on commit b38aaef

Please sign in to comment.