Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello I have similar issue in this question:Cannot Get Google Chrome (google-chrome-stable_current_amd64.deb) to download on VM.
I want to use dockerfile to install chrome in droplet directly. It was errored when process chrome installation command.
I tried commands in the linked answer. it doesn’t work as well. do you know have any other suggestions? Is there anything I missed? Is that version issue? How can I change to use an old version?
Besides,if I type google-chrome --version in cmd directly. I can see found google chrome
Google Chrome 120.0.6099.109
Unpacking google-chrome-stable (120.0.6099.109-1) ...
dpkg-deb: error: <decompress> subprocess was killed by signal (Killed)
dpkg: error processing archive /tmp/apt-dpkg-install-mNxaOF/087-google-chrome-stable_current_amd64.deb (--unpack):
cannot copy extracted data for './opt/google/chrome/chrome' to '/opt/google/chrome/chrome.dpkg-new': unexpected end of file or stream
.....
Selecting previously unselected package zutty.
Preparing to unpack .../192-zutty_0.14.0.20230218+dfsg1-1_amd64.deb ...
Unpacking zutty (0.14.0.20230218+dfsg1-1) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-mNxaOF/087-google-chrome-stable_current_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c apt-get install -y ./google-chrome-stable_current_amd64.deb' returned a non-zero code: 100
This is my dockerfile:
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set environment variables for Python
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
unzip \
wget \
gnupg2 \
ca-certificates \
apt-transport-https \
software-properties-common
# Add Google Chrome to the repositories
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
# Install Google Chrome
RUN apt-get update && apt-get install -y google-chrome-stable
#OR
#wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#sudo dpkg -i google-chrome-stable_current_amd64.deb
#sudo apt-get -f install -y
RUN google-chrome --version
RUN wget -q --continue -P /chromedriver "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/120.0.6099.71/linux64/chromedriver-linux64.zip" \
&& unzip /chromedriver/chromedriver* -d /usr/local/bin/
# Install Python dependencies
COPY requirements.txt /app/
#RUN apt-get install python3-pip
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy the current directory contents into the container at /app
COPY . /app/
EXPOSE 5000
ENV FLASK_APP=app.py
#CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
CMD ["gunicorn" , "-b", "0.0.0.0:5000", "app:app"]
a48f76a0351645dc8785d0c26f72dc
jhg
KILA Admin
rphintze
yyz20002008
f8e7c18b8ff949bcb1002d76b9e565
patrickhasting
Gabe
Elia Hölzel
reid
yee
cameron aero