I'm trying to install brew in my container but it's impossible.
Docker-compose.yml:
version: '3.9'
services:
# Application service
hermes:
depends_on:
- db
- adminer
build:
context: ./hermes-app/
container_name: hermes
ports:
- "5000:5000"
tty: true
db:
image: postgres
restart: always
container_name: postgres
volumes:
- ./hermes-app/db:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- 8080:8080
Dockerfile:
FROM ruby:3.1.1
# Install dependencies
RUN apt-get update && apt-get install -y \
sudo \
vim \
build-essential \
curl \
git \
libcurl4-openssl-dev \
libffi-dev \
libreadline-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libyaml-dev \
zlib1g-dev \
postgresql \
ruby-build
# Create workspace
RUN mkdir -p /hermes-app
WORKDIR /hermes-app
COPY srcs/ .
# Install ruby dependencies
RUN gem install bundler
RUN bundle install
EXPOSE 5000
I already tried with different ways but i can't do it.
If i use the command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
The output is:
==> Checking for `sudo` access (which may request your password)...
Don't run this as root!
And if i changed the user to non-root user the output is:
==> Checking for `sudo` access (which may request your password)...
==> Select a Homebrew installation directory:
- Enter your password to install to /home/linuxbrew/.linuxbrew (recommended)
- Press Control-D to install to /home/moderator/.linuxbrew
- Press Control-C to cancel installation
Homebrew on Linux is not supported on ARM processors.
You can try an alternate installation method instead:
https://docs.brew.sh/Homebrew-on-Linux#arm
Anyone can help me?, thanks in advance...