Skip to content

Commit

Permalink
Add tzdata
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs88a committed Sep 30, 2024
1 parent 82a3de3 commit 6b76fa9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
build-docker:
build-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ ARG BASE_VERSION=3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd13

FROM alpine:${BASE_VERSION} AS base

RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Singapore /etc/localtime \
&& echo "Asia/Singapore" > /etc/timezone \
&& apk del tzdata

USER root
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ target "push" {
"ghcr.io/${OWNER}x/${FILE}",
"ghcr.io/${OWNER}x/${FILE}:${TAG}",
"public.ecr.aws/${OWNER}/${GROUP}/${FILE}",
"public.ecr.aws/${OWNER}/${GROUP}/${FILE}:${TAG}"
"public.ecr.aws/${OWNER}/${GROUP}/${FILE}:${TAG}",
]
}

0 comments on commit 6b76fa9

Please sign in to comment.