Skip to content

Commit 52eb036

Browse files
committed
πŸ› Fix: Docker timezone
1 parent 7a9d350 commit 52eb036

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

β€ŽDockerfileβ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
FROM openjdk:17-jdk-slim
22

3+
# tzdata νŒ¨ν‚€μ§€ μ„€μΉ˜ 및 μ‹œκ°„λŒ€ μ„€μ •
4+
RUN apt-get update && apt-get install -y tzdata && \
5+
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
6+
echo "Asia/Seoul" > /etc/timezone
7+
38
EXPOSE 8080
49

510
ARG JAR_FILE=build/libs/*.jar
@@ -8,4 +13,4 @@ COPY ${JAR_FILE} weski-app.jar
813
CMD java -Dserver.port=8080 \
914
-Dspring.datasource.username=master \
1015
-Dspring.datasource.password=master \
11-
-jar /weski-app.jar
16+
-jar /weski-app.jar

β€Žsrc/main/kotlin/nexters/weski/batch/WeatherScheduler.ktβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class WeatherScheduler(
1212
externalWeatherService.updateCurrentWeather()
1313
}
1414

15-
@Scheduled(cron = "0 30 3 * * *")
15+
@Scheduled(cron = "30 0 0 * * *")
1616
fun scheduledDailyWeatherUpdate() {
1717
externalWeatherService.updateDailyWeather()
1818
}
1919

20-
@Scheduled(cron = "0 10 5 * * *")
20+
@Scheduled(cron = "0 1 0 * * *")
2121
fun scheduledHourlyAndDailyUpdate() {
2222
externalWeatherService.updateHourlyAndDailyWeather()
2323
}

0 commit comments

Comments
Β (0)