Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit 71965a1

Browse files
committed
Fix timezone asking
1 parent 39c6888 commit 71965a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile_sysroot

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ RUN curl https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | apt-ke
1818

1919
RUN sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list'
2020

21+
# Install timezone data to prevent asking it in CLI
22+
ENV TZ=America/Los_Angeles
23+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
24+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
25+
2126
# ROS setup requirements
22-
RUN apt-get update && apt-get install -y \
27+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
2328
build-essential \
2429
cmake \
2530
git \

0 commit comments

Comments
 (0)