-
Notifications
You must be signed in to change notification settings - Fork 387
/
Dockerfile.development
48 lines (39 loc) · 1.49 KB
/
Dockerfile.development
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
FROM debian:12
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https lsb-release ca-certificates curl gnupg
RUN curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
chromium-driver \
default-mysql-client \
git \
gosu \
jhead \
nodejs \
php8.3 \
php8.3-common \
php8.3-curl \
php8.3-ds \
php8.3-gd \
php8.3-intl \
php8.3-mbstring \
php8.3-mysql \
php8.3-redis \
php8.3-sqlite3 \
php8.3-swoole \
php8.3-tokenizer \
php8.3-xml \
php8.3-zip \
zip
RUN npm install -g yarn
RUN curl -L "https://getcomposer.org/download/latest-2.x/composer.phar" > /usr/local/bin/composer && chmod 755 /usr/local/bin/composer
RUN mv /usr/bin/chromium /usr/bin/chromium.orig
COPY chromium /usr/bin/
WORKDIR /app
RUN groupadd osuweb && useradd -g osuweb -d /app/.docker osuweb
ENTRYPOINT ["/app/docker/development/entrypoint.sh"]
CMD ["octane"]