Skip to content

Commit

Permalink
fix: set timezone KST
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhoJJang committed Aug 17, 2024
1 parent 5ac03bf commit 8f85e63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ WORKDIR /app
# Set node environment to production
ENV NODE_ENV=production

# Set timezone to KST
ENV TZ=Asia/Seoul

# Install tzdata package and set timezone
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone

# Add a non-root user
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
Expand Down

0 comments on commit 8f85e63

Please sign in to comment.