mirror of
https://github.com/xiaoqidun/pfenv.git
synced 2024-12-21 18:21:07 +08:00
feat(初始项目): 初始项目
This commit is contained in:
parent
f958a0f3b7
commit
861ea2e9f0
16
.drone.yml
Normal file
16
.drone.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: docker
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
pull: if-not-exists
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: xiaoqidun/pfenv
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: Dockerfile
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.idea/
|
||||
.vscode/
|
||||
.devcontainer/
|
64
Dockerfile
Normal file
64
Dockerfile
Normal file
@ -0,0 +1,64 @@
|
||||
# 基础镜像
|
||||
FROM php:7.4-fpm
|
||||
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
|
||||
# 安装扩展
|
||||
RUN pecl install redis-5.3.1 \
|
||||
&& docker-php-ext-enable redis
|
||||
|
||||
RUN pecl install xdebug-2.9.6 \
|
||||
&& docker-php-ext-enable xdebug
|
||||
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
dba \
|
||||
exif \
|
||||
pcntl \
|
||||
shmop \
|
||||
bcmath \
|
||||
gettext \
|
||||
sockets \
|
||||
sysvmsg \
|
||||
sysvsem \
|
||||
sysvshm \
|
||||
calendar \
|
||||
mysqli \
|
||||
pdo_mysql
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libpng-dev \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
&& docker-php-ext-configure gd \
|
||||
--with-jpeg \
|
||||
--with-freetype \
|
||||
&& docker-php-ext-install -j$(nproc) gd
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libffi-dev \
|
||||
&& docker-php-ext-configure ffi \
|
||||
--with-ffi \
|
||||
&& docker-php-ext-install -j$(nproc) ffi
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libzip-dev \
|
||||
&& docker-php-ext-install -j$(nproc) zip
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libbz2-dev \
|
||||
&& docker-php-ext-install -j$(nproc) bz2
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
libpq-dev \
|
||||
&& docker-php-ext-install -j$(nproc) \
|
||||
pgsql \
|
||||
pdo_pgsql
|
||||
|
||||
RUN docker-php-ext-configure opcache --enable-opcache \
|
||||
&& docker-php-ext-install -j$(nproc) opcache
|
Loading…
x
Reference in New Issue
Block a user