Este es mi Dockerfile: Establece la imagen base de ubuntu… · The Chat Archive
Explore / Programming Este es mi Dockerfile: Establece la imagen base de ubuntu FROM ubuntu:latest Actualiza… Save Share Download ▾ ReportEste es mi Dockerfile:
Establece la imagen base de ubuntu
FROM ubuntu:latest
Actualiza los paquetes e instala las herramientas básicas
RUN apt-get clean update && DEBIAN_FRONTEND=noninteractive apt-get clean install -y build-essential curl git vim wget php-cli curl
Configura la zona horaria a Madrid (Europe/Madrid)
RUN ln -snf /usr/share/zoneinfo/TZ /etc/localtime && echo TZ > /etc/timezone
Instala PHP, tzdata, y las extensiones necesarias para Laravel
RUN DEBIAN_FRONTEND=noninteractive apt-get clean install -y php-common php-curl php-json php-mbstring php-mysql php-xml php-zip
Instala Composer (gestor de paquetes de PHP)
RUN curl -sS -o composer-setup.php https://getcomposer.org/installer && php composer-setup.php --install-dir=/usr/local/bin --filename=composer && rm composer-setup.php
Instala Node.js, NPM, Yarn, Angular CLI, Gulp, Bootstrap y Webpack
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo “deb https://dl.yarnpkg.com/debian/ stable main” | tee /etc/apt/sources.list.d/yarn.list && apt-get clean update && apt-get clean install -y nodejs yarn && npm install -g @angular/cli gulp webpack webpack-cli bootstrap
Instala Python y pip
RUN apt-get clean install -y python3 python3-pip
Instala XAMPP
RUN wget -q https://www.apachefriends.org/xampp-files/8.0.10/xampp-linux-x64-8.0.10-0-installer.run -O xampp-installer.run && chmod +x xampp-installer.run && ./xampp-installer.run --mode unattended && rm xampp-installer.run
ENV PATH /opt/lampp/bin:PATH
Instala Visual Studio Code y Visual Studio Codium
RUN wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | apt-key add - &&
echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list &&
apt-get clean update &&
apt-get clean install -y
code
codium
Assistant2023-06-06 11:01 UTC Copy response
El problema es que se encuentra un error en la instalación de curl en la segunda línea del Dockerfile. La línea está mal formada y necesita ser corregida.
Reemplace la segunda línea del Dockerfile con la siguiente:
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential curl git vim wget php-cli
Esto debería solucionar el problema con la instalación de curl. Ahora el Dockerfile debería construirse correctamente.
Copy first prompt
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Jun 6, 2023
Added to archive Nov 16, 2026
ID 01m7h41b2srxj0kbbgf6h5w0trSource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: 87bd336699edabd7a1563be7f45cb7f9
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
Instala PyCharm ENV PATH /opt/pycharm-community-2021.2.2/bin:PATH
Instala Laravel en ~/laravel RUN composer global require laravel/installer && echo “export PATH=”P A T H : PATH: P A T H : HOME/.composer/vendor/bin"" >> ~/.bashrc && . ~/.bashrc
Instala LXDE (entorno de escritorio) y servidor VNC (TightVNC) RUN apt-get clean update && apt-get install -y lxde && apt-get clean install -y tightvncserver
Reemplaza Vim con NeoVim RUN apt-get clean install -y neovim
Instala NVChad RUN apt-get clean install -y curl xclip xsel fzf && git clone https://github.com/NvChad/NvChad.git ~/.config/nvim && nvim +silent +PlugInstall +qall && echo “alias vim=‘nvim’” >> ~/.bashrc
Instala Tmux RUN apt-get clean install -y tmux
Instala GitKraken (cliente de Git con UI) RUN apt-get clean install -y gconf2 gconf-service libgtk2.0-0 libnotify4 libappindicator1 libxtst6 libnss3 python3 libgconf-2-4 libxkbfile1 && wget -q https://release.gitkraken.com/linux/gitkraken-amd64.deb -O gitkraken.deb && dpkg -i gitkraken.deb && apt-get clean install -f -y && rm gitkraken.deb
Volumen compartido entre host y contenedor
En tu máquina host, crea la carpeta donde se montará el volumen: mkdir -p D:\Docker\Ubuntu
Establece el directorio de trabajo en el volumen compartido
Comando a ejecutar cuando se inicia el contenedor (inicia el servidor VNC) CMD [“vncserver”, “:1”, “-geometry”, “1280x800”, “-localhost”, “no”]
[ 5/17] RUN curl -sS -o composer-setup.php https://getcomposer.org/installer && php composer-setup.php --install-dir=/usr/local/bin --filename=composer && rm composer-setup.php:
#0 0.320 /bin/sh: 1: curl: not found
Dockerfile:14 12 |
13 | # Instala Composer (gestor de paquetes de PHP)
14 | >>> RUN curl -sS -o composer-setup.php https://getcomposer.org/installer && php composer-setup.php --install-dir=/usr/local/bin --filename=composer && rm composer-setup.php
15 |
16 | # Instala Node.js, NPM, Yarn, Angular CLI, Gulp, Bootstrap y Webpack ERROR: failed to solve: process "/bin/sh -c curl -sS -o composer-setup.php https://getcomposer.org/installer && php composer-setup.php --install-dir=/usr/local/bin --filename=composer && rm composer-setup.php" did not complete successfully: exit code: 127
Copy first response
Not yet included in a published release.