Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
team-skyjs
kbap-server
Repository navigation
Code
Issues
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
develop
Breadcrumbs
kbap-server
/
Dockerfile.batch
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 1.08 KB
develop
Breadcrumbs
kbap-server
/
Dockerfile.batch
Copy path
Top
File metadata and controls
Code
Blame
19 lines (17 loc) · 1.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# syntax=docker/dockerfile:1
# 멀티스테이지: Gradle 로 배치 bootJar 빌드 → JRE 런타임 이미지.
# 빌드 대상은 배치 앱(:batch) — 상시 기동되며 잡은 POST /internal/batch/jobs?jobName= 로 비동기 트리거하고
# GET /internal/batch/executions/{id} 로 결과를 폴링한다.
# 8080 은 도커 네트워크 안에서만 쓰므로 호스트로 publish 하지 않는다(트리거 클라이언트는 같은 네트워크의 젠킨스).
# 테스트는 CI 에서 별도 수행하므로 여기선 제외. api 이미지는 Dockerfile 로 별도 빌드·관리한다.
# 빌드 스테이지는 빌드 머신 네이티브(BUILDPLATFORM) — Dockerfile 의 같은 주석 참고
FROM --platform=$BUILDPLATFORM eclipse-temurin:21-jdk AS build
WORKDIR /workspace
COPY . .
RUN chmod +x gradlew \
&& ./gradlew :batch:bootJar -x test --no-daemon \
&& find batch/build/libs -name '*.jar' ! -name '*-plain.jar' -exec cp {} /workspace/app.jar \;
FROM eclipse-temurin:21-jre AS runtime
WORKDIR /app
COPY --from=build /workspace/app.jar app.jar
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
You can’t perform that action at this time.