-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support setting timezone in docker images (#2091)
- Loading branch information
1 parent
ec1659c
commit 9ad7b65
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
FROM node:20.11.0-alpine AS base | ||
LABEL maintainer="[email protected]" | ||
|
||
RUN apk add --no-cache tzdata | ||
|
||
|
||
# install packages | ||
FROM base as packages | ||
|
||
|
@@ -32,6 +35,10 @@ ENV CONSOLE_API_URL http://127.0.0.1:5001 | |
ENV APP_API_URL http://127.0.0.1:5001 | ||
ENV PORT 3000 | ||
|
||
# set timezone | ||
ENV TZ UTC | ||
RUN ln -s /usr/share/zoneinfo/${TZ} /etc/localtime \ | ||
&& echo ${TZ} > /etc/timezone | ||
|
||
WORKDIR /app/web | ||
COPY --from=builder /app/web/public ./public | ||
|