Skip to content

Commit

Permalink
Attempt to fix Dev deployment - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrME-CodeSmith committed Sep 29, 2023
1 parent ebcde86 commit 93716e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ RUN ls -la && ./gradlew build -x test -x check
FROM openjdk:17

WORKDIR /app

# Copy only the built jar file from the first stage
COPY --from=builder /home/gradle/project/build/libs/ /app/

Expand All @@ -47,8 +46,6 @@ RUN echo "KOJA_AWS_RDS_DATABASE_URL=$KOJA_AWS_RDS_DATABASE_URL" >> .env && \
echo "SERVER_ADDRESS=$SERVER_ADDRESS" >> .env && \
echo "SERVER_PORT=$SERVER_PORT" >> .env

# Document that the service listens on port 8080
EXPOSE 8080

# Start the built spring boot project when the Docker container is started
ENTRYPOINT ["java", "-jar", "/app/Koja-0.0.1-SNAPSHOT.jar"]
CMD ["java", "-jar", "/app/Koja-0.0.1-SNAPSHOT.jar"]
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ spring.security.oauth2.client.registration.google.client-secret=${GOOGLE_CLIENT_
spring.security.oauth2.client.registration.google.redirect-uri=http://localhost:8080
spring.jpa.open-in-view=false
server.address=0.0.0.0
server.port=8080
server.port=${PORT}

0 comments on commit 93716e9

Please sign in to comment.