0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PHPのオフィシャルDockerイメージにredis exensionを追加する方法(debian版)

Posted at

※ こちらの記事を大変参考にさせていただきました。
PHPのオフィシャルDockerイメージにredis exensionを追加する方法 - Qiita

「公式イメージ」にdebianベースのものを用いた場合の、「こうやったらphpredis入ったよ」という記事です。
どこかでまた使うことがありそうなので、備忘録としてメモ。

FROM php:7.0-apache

RUN apt-get update && apt-get install -y --no-install-recommends libicu-dev git

WORKDIR /usr/src/php/ext
RUN git clone -b php7 --depth 1 https://github.com/Connehito/phpredis.git redis

RUN docker-php-ext-install redis
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?