Tag: dockerfile
-
制作中国时区的alpine 最小镜像解决时间问题
默认的alpine 时间是不对的,自己稍微改造一下,dockerfile 如下: FROM alpine:latest MAINTAINER moneyslow <good@moneyslow.com> RUN apk update && apk add tzdata \ && cp -r -f /usr/share/zoneinfo/PRC /etc/localtime 方法2: mount 宿主机的/etc/localtime
-
dockerfile 之php5.6.32扩展安装memcache memcachd redis mongodb
FROM php56:v1 LABEL maintainer=”moneyslow” RUN apk update && apk add autoconf openssl-dev g++ make && \ pecl install mongo && \ docker-php-ext-enable mongo RUN apk add –no-cache –virtual .build-deps pcre-dev && \ pecl install mongodb && \ docker-php-ext-enable mongodb RUN apk add rsync php5-memcache php5-mysql php5-mssql php5-bz2…
-
dockerfile 之php7的memcache、memcached、redis、mongodb 扩展安装
—————————————————– php 7 ——————————————————————————- 参考:https://stackoverflow.com/questions/31369867/how-to-install-php-redis-extension-using-the-official-php-docker-image-approach Slightly revised version of starikovs and skyred answers for the current PHP 7 version of the docker image (tested on php:7.0.8-fpm-alpine and php:7.0.8-alpine). Uses the newly released 3.0 version (June 2016) for PHP 7. 安装redis扩展 ENV PHPREDIS_VERSION 3.0.0 RUN mkdir -p /usr/src/php/ext/redis \ && curl -L https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz |…
-
Docker–使用 Dockerfile 定制nginx镜像
# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx v2 3e3413f5d526 3 hours ago 109MB ubuntu 14.04 2ff3b426bbaa 3 days ago 188MB nginx latest 3448f27c273f 8 days ago 109MB # cat Dockerfile FROM nginx RUN echo ‘<h1>Hello, Docker!1111111111</h1>’ > /usr/share/nginx/html/index.html # docker build -t nginx:v3 . Sending build context to Docker daemon 2.048kB Step…