mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
add: timezone info in image
Signed-off-by: Thorsten Klein <tk@thklein.io>
This commit is contained in:
parent
0011eb5ead
commit
a26441613b
@ -1,5 +1,5 @@
|
||||
FROM alpine:3.18 as base
|
||||
RUN apk add -U ca-certificates tar zstd
|
||||
RUN apk add -U ca-certificates tar zstd tzdata
|
||||
COPY build/out/data.tar.zst /
|
||||
RUN mkdir -p /image/etc/ssl/certs /image/run /image/var/run /image/tmp /image/lib/modules /image/lib/firmware && \
|
||||
tar -xa -C /image -f /data.tar.zst && \
|
||||
@ -8,6 +8,7 @@ RUN mkdir -p /image/etc/ssl/certs /image/run /image/var/run /image/tmp /image/li
|
||||
FROM scratch
|
||||
ARG VERSION="dev"
|
||||
COPY --from=base /image /
|
||||
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
RUN mkdir -p /etc && \
|
||||
echo 'hosts: files dns' > /etc/nsswitch.conf && \
|
||||
echo "PRETTY_NAME=\"K3s ${VERSION}\"" > /etc/os-release && \
|
||||
|
Loading…
Reference in New Issue
Block a user