사용자 도구

사이트 도구


java:openjdk:docker

OpenJdk Docker

Temurin - docker

alipine 회피

This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

기본 배포판

  • openjdk:<version> : Debian 기반
  • openjdk:<version>-alpine : Alpine Linux 기반
FROM openjdk:8-alpine

# Timezone 보정
RUN apk add tzdata
RUN cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime
RUN echo "Asia/Seoul" > /etc/timezone

ENV LANG=ko_KR.UTF-8

# Java application 실행 설정
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Main.java
CMD ["java", "Main"]

참조

java/openjdk/docker.txt · 마지막으로 수정됨: 2022/02/16 15:04 저자 kwon37xi