|
Edited by sypperpit at 2018-8-28 21:34
docker work good
use https://hub.docker.com/r/arm32v7/php/
Copy you Grav CMS and Dockerfile to /home/<Username>/www
- FROM arm32v7/php:7.2-apache
- VOLUME /home/<Username>/www:/var/www/html
- RUN apt-get update && apt-get install -y \
- libfreetype6-dev \
- libjpeg62-turbo-dev \
- libpng-dev \
- apt-transport-https \
- libssl-dev \
- zip unzip \
- wget \
- && docker-php-ext-install -j$(nproc) iconv \
- && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
- && docker-php-ext-install -j$(nproc) gd iconv zip pdo bcmath
- RUN for mod in rewrite headers; do a2enmod $mod; done && service apache2 restart
- WORKDIR /var/www/html/
- EXPOSE 80:80
Copy code
<Username> - set you name
run
- docker build -t arm32v7/php /home/<Username>/www/
Copy code
See you image
REPOSITORY TAG IMAGE ID CREATED SIZE
arm32v7/php latest <you_docker_ID_IMG> 30 minutes ago 323MB
and start server
- docker run -d -p 80:80 -v "$PWD":/var/www/html -t <you_docker_ID_IMG>
Copy code
see server start or not
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
<you_docker_ID_cont> <ImageID> "docker-php-entrypoi…" 7 minutes ago Up 7 minutes 0.0.0.0:80->80/tcp jolly_minsky
|
|