php-with-node. bullseye

This commit is contained in:
2021-08-25 01:14:36 +09:00
parent 83411de473
commit 6f91210543
3 changed files with 77 additions and 4 deletions
+7 -2
View File
@@ -1,4 +1,4 @@
FROM php:8.0-fpm-buster
FROM php:8.0-fpm-bullseye
#debian
ENV LC_ALL=C.UTF-8
@@ -8,7 +8,7 @@ RUN apt -y update ;\
bzip2 git rsync \
libmemcached-dev libcurl4-openssl-dev libmcrypt-dev \
libicu-dev libjpeg-dev libpng-dev libwebp-dev libfreetype6-dev \
libzip-dev libxml2-dev libsqlite3-dev gosu;
libzip-dev libxml2-dev libsqlite3-dev gosu build-essential;
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
@@ -24,6 +24,11 @@ RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
mysqli \
zip;
RUN pecl install memcached mcrypt;
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt install -yq nodejs
RUN npm install -g npm
#from nextcloud setting
RUN mkdir -p /var/www/html/; \
mkdir -p /var/www/.ssh;
+2 -2
View File
@@ -1,4 +1,4 @@
FROM php:7.4-fpm-buster
FROM php:7.4-fpm-bullseye
#debian
ENV LC_ALL=C.UTF-8
@@ -8,7 +8,7 @@ RUN apt -y update ;\
bzip2 git rsync \
libmemcached-dev libcurl4-openssl-dev libmcrypt-dev \
libicu-dev libjpeg-dev libpng-dev libwebp-dev libfreetype6-dev \
libzip-dev libxml2-dev libsqlite3-dev gosu;
libzip-dev libxml2-dev libsqlite3-dev gosu build-essential;
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr; \
@@ -0,0 +1,68 @@
version: '3.2'
services:
db:
ports:
- 3306:3306
#For DEV. Expose MySQL port
volumes:
- type: bind
source: ~/dev_sam/db
target: /var/lib/mysql
web:
build:
args:
UID: 1000
GID: 1000
#For DEV. Set UID of www-data as first local user
ports:
- 8084:80
#For DEV. Export Web port.
volumes:
- type: bind
source: ~/dev_sam/app
target: /var/www/html
#For DEV. Set app path as local directory
- type: bind
source: ~/dev_sam/bbs
target: /var/www/board
app:
build:
args:
UID: 1000
GID: 1000
volumes:
- type: bind
source: ~/dev_sam/app
target: /var/www/html
board:
build:
args:
UID: 1000
GID: 1000
volumes:
- type: bind
source: ~/dev_sam/board
target: /var/www/board
install:
volumes:
- type: bind
source: ~/dev_sam/app
target: /var/www/html
cron:
build: ./cron
restart: "no"
#For DEV. Disable cron
entrypoint: ["echo", "Service cron disabled"]
volumes:
- type: bind
source: ~/dev_sam/app
target: /var/www/html
depends_on:
- app