Skip to content

Commit

Permalink
๐Ÿ‘ท [Ci] timezone ๊ด€๋ จ ์„ค์ • ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjin3395 committed Jan 18, 2025
1 parent b7ac28f commit 940d96b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: [closed]
branches:
- develop
push:
branches:
- cicd/113
workflow_dispatch: # ์ˆ˜๋™ ์‹คํ–‰ ๊ฐ€๋Šฅํ•˜๋„๋ก

jobs:
Expand Down
12 changes: 12 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
FROM --platform=linux/amd64 node:14

# 1) OS ํŒจํ‚ค์ง€ ์„ค์น˜(apt-get) ์ด์šฉํ•ด tzdata ์„ค์น˜
# 2) TZ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ •
# 3) /etc/localtime ๋งํฌ ๊ต์ฒด ๋ฐ /etc/timezone ํŒŒ์ผ ์ƒ์„ฑ
ENV TZ=Asia/Seoul
RUN apt-get update && apt-get install -y tzdata && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# 4) ์•ฑ ์†Œ์Šค ๋ณต์‚ฌ
COPY ./ ./

# 5) ํŒจํ‚ค์ง€ ์„ค์น˜
RUN npm install

# 6) ์‹คํ–‰ ๋ช…๋ น
CMD ["node", "index.js"]

0 comments on commit 940d96b

Please sign in to comment.