Skip to content

Commit

Permalink
Merge pull request #371 from TrandPick/development
Browse files Browse the repository at this point in the history
dockerfile, work.yml 수정
  • Loading branch information
angelSuho authored Jul 10, 2023
2 parents 5d03770 + 521aab4 commit 93efc86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/work-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build-artifact
path: build
path: .
- name: Docker Buildx 설치
uses: docker/setup-buildx-action@v2
- name: ghcr.io 로그인
Expand Down
17 changes: 2 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
# Define a build stage
FROM openjdk:17-jdk-alpine AS build
WORKDIR /workspace/app

# Copy your source code
COPY . .

# Grant execution permission to Gradle wrapper
RUN chmod +x ./gradlew

# Build the application
RUN ./gradlew clean build

# Start a new stage
FROM openjdk:17-jdk-alpine

Expand All @@ -23,7 +10,7 @@ RUN sed -i 's/profiler.transport.grpc.collector.ip=127.0.0.1/profiler.transport.
RUN sed -i 's/profiler.collector.ip=127.0.0.1/profiler.collector.ip=10.41.183.156/g' /usr/local/pinpoint-agent-2.5.2/pinpoint-root.config

# Copy the built JAR from the build stage
COPY --from=build /workspace/app/build/libs/*.jar app.jar
COPY build/libs/*.jar app.jar

# Expose the required port
EXPOSE 8080
Expand All @@ -34,4 +21,4 @@ ENTRYPOINT ["java","-jar", \
"-Dpinpoint.applicationName=TrendPick", \
"-Dpinpoint.config=/usr/local/pinpoint-agent-2.5.2/pinpoint-root.config", \
"-Dspring.profiles.active=prod", \
"/app.jar"]
"/app.jar"]

0 comments on commit 93efc86

Please sign in to comment.