-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·88 lines (79 loc) · 4.49 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ubuntu:22.04
RUN apt update
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y python3
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y software-properties-common
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libonig-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libpq-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y gcc
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y curl
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y make
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y autoconf
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libc-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y pkg-config
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y wget
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libssh2-1-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libssl-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y bash
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y sshpass
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y zlib1g-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y nginx
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y openssh-server
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y micro
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y unzip
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libjpeg-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libxml2-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libfreetype6-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y supervisor
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y tini
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y libcurl4-openssl-dev
RUN export DEBIAN_FRONTEND=noninteractive && apt install -y python3-launchpadlib
RUN add-apt-repository ppa:ondrej/php
RUN apt-get update
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt install -y php8.2 php8.2-fpm
RUN apt install -y php8.2-curl
RUN apt install -y php8.2-cli
RUN apt install -y php8.2-gd
RUN apt install -y php8.2-exif
RUN apt install -y php8.2-curl
RUN apt install -y php8.2-bcmath
RUN apt install -y php8.2-amqp
RUN apt install -y php8.2-uuid
RUN apt install -y php8.2-sockets
RUN apt install -y php8.2-mcrypt
RUN apt install -y php8.2-fileinfo
RUN apt install -y php8.2-mbstring
RUN apt install -y php8.2-intl
RUN apt install -y php8.2-zip
RUN apt install -y php8.2-swoole
RUN apt install -y php8.2-mongodb
RUN apt install -y php8.2-grpc
RUN apt install -y php8.2-dev
RUN apt install -y php8.2-dom
RUN apt install -y php8.2-opcache
RUN apt install -y composer
RUN apt install -y npm
RUN apt install -y inotify-tools
ENV NODE_VERSION=19.9.0
ENV NVM_DIR /tmp/nvm
WORKDIR $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
COPY --from=php:8.2-fpm /usr/local/bin/docker-php-ext-enable /usr/local/bin/docker-php-ext-enable
COPY --from=php:8.2-fpm /usr/local/bin/docker-php-ext-install /usr/local/bin/docker-php-ext-install
COPY --from=php:8.2-fpm /usr/local/bin/docker-php-source /usr/local/bin/docker-php-source
COPY --from=php:8.2-fpm /usr/local/bin/docker-php-ext-configure /usr/local/bin/docker-php-ext-configure
COPY --from=php:8.2-fpm /usr/local/bin/docker-php-entrypoint /usr/local/bin/docker-php-entrypoint
COPY --from=php:8.2-fpm /usr/src/php.tar.xz /usr/src/php.tar.xz
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions mysqli #>> /dev/null 2>&1 || true
RUN install-php-extensions pdo
RUN install-php-extensions pdo-mysql
RUN install-php-extensions pdo-pgsql
RUN install-php-extensions curl
# RUN export PHP_INI_DIR=/etc/php/8.2/cli/ && install-php-extensions openswoole