Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to 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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
team-offway
/
core
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
29
Pull requests
7
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
dev
Breadcrumbs
core
/
Dockerfile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
26 lines (20 loc) · 1.55 KB
dev
Breadcrumbs
core
/
Dockerfile
Copy path
Top
File metadata and controls
Code
Blame
26 lines (20 loc) · 1.55 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
20
21
22
23
24
25
26
# 실행 전용 이미지 — jar 는 CI 가 이미 만든 것을 받는다.
# 컨테이너 안에서 gradle build 를 다시 돌리지 않는 이유: CI 러너에 의존성 캐시가 이미 있고,
# 이미지 안에서 빌드하면 캐시가 없어 매번 전체 의존성을 내려받아 배포가 느려진다.
# 패치 버전까지 고정한다 — 25-jre 같은 이동 태그는 코드 변경 없이도 배포마다 다른 JRE 를 받아와,
# "어제는 됐는데" 를 추적 불가능하게 만든다. 업그레이드는 이 줄을 고치는 의도적 행위로 둔다.
FROM eclipse-temurin:25.0.3_9-jre
WORKDIR /app
# root 로 돌리지 않는다 — 컨테이너가 뚫려도 호스트로 번지는 폭을 줄인다.
RUN useradd --system --create-home --shell /usr/sbin/nologin offway
USER offway
# CI 가 build/libs/*.jar 를 이 경로로 넘긴다.
COPY --chown=offway:offway build/libs/*.jar app.jar
EXPOSE 8080
# 컨테이너 메모리 한도를 JVM 이 인식하게 둔다(기본 동작) — -Xmx 를 박으면 인스턴스를 바꿀 때마다 고쳐야 한다.
# 타임존은 KST 고정. 연차·D-day·"오늘자" 판정이 전부 KST 기준이라 컨테이너가 UTC 면 하루가 어긋난다.
ENV TZ=Asia/Seoul
# 이 이미지는 배포 전용이므로 prod 가 기본이다. 애플리케이션 기본값은 local 이라, 프로파일이 빠지면
# H2 인메모리와 **알려진 계정 dev/dev** 로 조용히 뜬다 — 외부에 열린 8080 에서는 그게 곧 무방비다.
ENV SPRING_PROFILES_ACTIVE=prod
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
You can’t perform that action at this time.