Skip to content

Commit

Permalink
Daemon Dockerfile and Future.md update
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBenR committed Feb 1, 2025
1 parent b42023f commit 177a0b3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 13 deletions.
49 changes: 36 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
#CREDIT: https://stackoverflow.com/questions/61108021/gradle-and-docker-how-to-run-a-gradle-build-within-docker-container
#Build stage
# # #CREDIT: https://stackoverflow.com/questions/61108021/gradle-and-docker-how-to-run-a-gradle-build-within-docker-container
# # #Build stage

FROM gradle:latest AS BUILD
WORKDIR /usr/app/
COPY . .
RUN gradle build
# # FROM gradle:latest AS BUILD
# # WORKDIR /usr/app/
# # COPY . .
# # RUN gradle build

# Package stage
# # # Package stage

FROM openjdk:latest
ENV JAR_NAME=app-1.0.jar
ENV APP_HOME=/usr/app
WORKDIR $APP_HOME
COPY --from=BUILD $APP_HOME .
# # FROM openjdk:latest
# # ENV JAR_NAME=app-1.0.jar
# # ENV APP_HOME=/usr/app
# # WORKDIR $APP_HOME
# # COPY --from=BUILD $APP_HOME .
# # EXPOSE 8080
# # ENTRYPOINT exec java -jar $APP_HOME/build/libs/$JAR_NAME
# # Use a base image that has JDK and Gradle installed
# Use a base image that includes JDK
# Use a base image with Wine and JDK
# Use the official Microsoft Windows Server Core image with JDK
# Use Ubuntu as base image with OpenJDK
# Use the official Gradle Docker image
# Use the official Gradle Docker image
FROM gradle:7.5-jdk17

# Set the working directory inside the container
WORKDIR /app

# Copy the entire project into the container (including gradlew and other files)
COPY . .

# Ensure the gradle wrapper is executable
RUN chmod +x gradlew

# Expose the port that your application will run on (replace 8080 with the appropriate port)
EXPOSE 8080
ENTRYPOINT exec java -jar $APP_HOME/build/libs/$JAR_NAME

# Run the application with the gradlew wrapper using the run task
CMD ["./gradlew", "run", "--no-daemon"]
1 change: 1 addition & 0 deletions FUTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Even though we were very content with what we were able to finish during the 24
- Cleaner output organization from the bot commands.
- Additional commands, such as top *artists*, *recent* songs, and *recent* artists.
- Better background processes for looping thorugh databases of sassy responses.
- Implementation of Spotify API's Refresh Token service so that users don't have to redo authentication.

## Plans for Continuation 📜
**Despite the the possibilities listed above, there are actively *no* plans to continue development with this bot.**
Expand Down

0 comments on commit 177a0b3

Please sign in to comment.