-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (40 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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"]