Skip to content

Commit fbcedec

Browse files
authored
Merge pull request #54 from FlipNoteTeam/fix/docker-java-tag
Fix: 자바 이미지 문제로 빌드 안되는 오류
2 parents 4e23577 + 1f98e1b commit fbcedec

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ COPY src ./src
66

77
RUN gradle bootJar --no-daemon
88

9-
FROM openjdk:17-jdk-slim
9+
FROM amazoncorretto:17.0.17-alpine3.22
1010
WORKDIR /app
1111

1212
ENV TZ=Asia/Seoul
13-
RUN apt-get update \
14-
&& apt-get install -y tzdata \
13+
RUN apk add --no-cache tzdata \
1514
&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
16-
&& echo $TZ > /etc/timezone \
17-
&& rm -rf /var/lib/apt/lists/*
15+
&& echo $TZ > /etc/timezone
1816

1917
COPY --from=build /app/build/libs/flipnote-0.0.1-SNAPSHOT.jar .
2018

0 commit comments

Comments
 (0)