Skip to content

Commit

Permalink
Use locale and xargsfor fleet-os-2
Browse files Browse the repository at this point in the history
  • Loading branch information
koudis committed Jan 20, 2025
1 parent a81b1f5 commit 664476b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions example/docker/fleet-os-2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,25 @@ FROM debian:11.2
USER root
RUN echo root:1234 | chpasswd

ENV DEBIAN_FRONTEND=noninteractive

#
# Install Base dependencies into the docker container
#
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential xz-utils sed git libssl-dev openssh-server unzip python3 make patchelf wget && \
apt-get install -y \
build-essential xz-utils sed git libssl-dev openssh-server unzip python3 make patchelf wget locales perl file \
findutils && \
rm -rf /var/lib/apt/lists/*

# Generate the locale for en_US.UTF-8
RUN locale-gen en_US.UTF-8

# Set environment variables for locale
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN wget "https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2-linux-x86_64.sh" -O cmake.sh && \
chmod +x cmake.sh && \
./cmake.sh --skip-license --prefix=/usr/local && \
Expand Down

0 comments on commit 664476b

Please sign in to comment.