first commit
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# Alpine Linux를 베이스 이미지로 사용
|
||||
FROM alpine:latest
|
||||
|
||||
# 시스템 패키지 업데이트 및 Java 17 설치
|
||||
RUN apk update && \
|
||||
apk add --no-cache openjdk17 procps
|
||||
|
||||
# 작업 디렉토리 설정
|
||||
WORKDIR /app
|
||||
|
||||
# Spring Boot 기본 포트 노출
|
||||
EXPOSE 9000
|
||||
|
||||
# 컨테이너 실행 시 animeApi.jar 파일을 직접 실행
|
||||
ENTRYPOINT ["java", "-jar", "/app/animeApi.jar"]
|
||||
Reference in New Issue
Block a user