A memorandum for Docker beginners. I would appreciate it if you could tell me what is wrong and what you should do.
It was possible using the alternative installation in the official documentation. Note that after installing aptitude, the latest packages will not be installed unless you also perform aptitude update on aptitude.
apt-get update && apt-get install -y aptitude
aptitude update && aptitude install -y build-essential curl file git
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)
aptitude update
brew update
When warnings in the following languages appear
line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Install locales and set the language
aptitude update && aptitude install -y locales
localedef -f UTF-8 -i en_US en_US
#For those who use Japanese,
# localedef -f UTF-8 -i ja_JP ja_JP
FROM debian:buster
RUN apt-get update && apt-get install -y aptitude
RUN apt-get update
RUN aptitude update && aptitude install -y build-essential curl file git
RUN aptitude update
#install brew
RUN git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
RUN mkdir ~/.linuxbrew/bin
RUN ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
RUN eval $(~/.linuxbrew/bin/brew shellenv)
#Language support
RUN aptitude update && aptitude install -y locales
RUN localedef -f UTF-8 -i en_US en_US
Homebrew on Linux — Homebrew Documentation
Kill the cannot change locale --ARCHIVESDRIVE HB
Recommended Posts