[Add] panel container(dev)
This commit is contained in:
30
docker/panel/Dockerfile
Normal file
30
docker/panel/Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM openeuler/openeuler:24.03
|
||||
|
||||
RUN dnf update -y \
|
||||
&& dnf install git php-cli php-bcmath php-mbstring php-pdo php-pecl-zip php-opcache php-sodium php-intl php-pear php-devel c-ares-devel libcurl-devel openssl-devel brotli brotli-devel -y \
|
||||
&& dnf clean all \
|
||||
&& rm -rf /var/cache/dnf/*
|
||||
|
||||
RUN echo "extension=/usr/lib64/php/modules/zstd.so" > /etc/php.d/20-zstd.ini \
|
||||
&& echo "extension=/usr/lib64/php/modules/swoole.so" > /etc/php.d/50-swoole.ini\
|
||||
&& pecl channel-update https://pecl.php.net/channel.xml \
|
||||
&& pecl install zstd \
|
||||
&& pecl install --configureoptions 'enable-sockets="yes" enable-openssl="yes" enable-mysqlnd="no" enable-swoole-curl="yes" enable-cares="yes" enable-brotli="yes"' swoole
|
||||
|
||||
RUN curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/v20.16.0/node-v20.16.0-linux-x64.tar.xz | tar -xJ --strip-components=1 -C /usr/local
|
||||
|
||||
RUN curl -fsSL https://getcomposer.org/download/latest-stable/composer.phar -o /usr/local/bin/composer \
|
||||
&& chmod +x /usr/local/bin/composer \
|
||||
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
||||
|
||||
RUN sed -i 's/memory_limit\s*=.*/memory_limit = 1024M/g' /etc/php.ini
|
||||
|
||||
RUN npm config set registry https://registry.npmmirror.com \
|
||||
&& npm install -g yarn \
|
||||
&& yarn config set registry https://registry.npmmirror.com
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 8000
|
||||
Reference in New Issue
Block a user