/
mikopbx
/
BrowserStackDocker
Обзор
Документация
Войти
/
mikopbx
/
BrowserStackDocker
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Dockerfile
48 строк
1 KB
Nikolay Beketov
first commit
14 янв 2025, 07:56
14 янв 2025, 07:56
153ddcb
Код
Авторство
О чём код?
# Use Ubuntu as base image FROM nexus.miko.ru:5000/ubuntu:22.04 # Prevent interactive prompts during package installation ENV DEBIAN_FRONTEND=noninteractive # Install prerequisites and add PHP repository RUN apt-get update && apt-get install -y \ software-properties-common \ curl \ gnupg2 \ ca-certificates \ lsb-release \ && add-apt-repository ppa:ondrej/php -y # Install PHP 8.3, Phalcon, required extensions and tools RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y \ php8.3-cli \ php8.3-common \ php8.3-phalcon5 \ php8.3-dom \ php8.3-mbstring \ php8.3-xml \ php8.3-xmlwriter \ php8.3-curl \ wget \ unzip \ iputils-ping \ curl # Install BrowserStackLocal RUN wget https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip && \ unzip BrowserStackLocal-linux-x64.zip && \ rm BrowserStackLocal-linux-x64.zip && \ chmod +x /BrowserStackLocal RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Clean up apt cache RUN rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Command to keep container running CMD ["tail", "-f", "/dev/null"]