-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 792 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 792 Bytes
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
27
# Base image
FROM openjdk:17-jdk-alpine
# Install Dockerize
RUN apk add --no-cache curl \
&& curl -sSL https://github.com/jwilder/dockerize/releases/download/v0.9.2/dockerize-linux-amd64-v0.9.2.tar.gz | tar xz -C /usr/local/bin
# Install Korean locale and set timezone
RUN apk add --no-cache tzdata fontconfig ttf-dejavu ttf-nanum \
&& cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime \
&& echo "Asia/Seoul" > /etc/timezone \
&& fc-cache -f -v \
# Set env for JVM to recognize the locale
ENV LANG=ko_KR.UTF-8 \
LANGUAGE=ko.KR_UTF-8 \
LC_ALL=ko.KR_UTF-8
# Set working directory
WORKDIR /app
# Copy application jar
COPY target/*.jar /app/app.jar
# Run application with dockerize to waiting for DB load
CMD ["java", "-Duser.timezone=Asia/Seoul", "-jar", "app.jar"]