Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jun 30, 2024
1 parent 0116fba commit 21a14d4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 53 deletions.
17 changes: 0 additions & 17 deletions Dockerfile.php-8.1
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,6 @@ LABEL maintainer="team@appwrite.io"

RUN docker-php-ext-install pdo_mysql

RUN \
apk update \
&& apk add --no-cache make automake autoconf gcc g++ git zlib-dev libmemcached-dev \
&& rm -rf /var/cache/apk/*

RUN \
# Redis Extension
git clone https://github.com/phpredis/phpredis.git && \
cd phpredis && \
git checkout $PHP_REDIS_VERSION && \
phpize && \
./configure && \
make && make install && \
cd ..

RUN echo extension=redis.so >> /usr/local/etc/php/conf.d/redis.ini

WORKDIR /code

COPY --from=step0 /src/vendor /code/vendor
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile.php-8.2
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ LABEL maintainer="team@appwrite.io"

RUN docker-php-ext-install pdo_mysql


RUN \
apk update \
&& apk add --no-cache make automake autoconf gcc g++ git zlib-dev libmemcached-dev \
&& rm -rf /var/cache/apk/*

RUN \
# Redis Extension
git clone https://github.com/phpredis/phpredis.git && \
cd phpredis && \
git checkout $PHP_REDIS_VERSION && \
phpize && \
./configure && \
make && make install && \
cd ..

RUN echo extension=redis.so >> /usr/local/etc/php/conf.d/redis.ini

WORKDIR /code

COPY --from=step0 /src/vendor /code/vendor
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile.php-8.3
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ LABEL maintainer="team@appwrite.io"

RUN docker-php-ext-install pdo_mysql


RUN \
apk update \
&& apk add --no-cache make automake autoconf gcc g++ git zlib-dev libmemcached-dev \
&& rm -rf /var/cache/apk/*

RUN \
# Redis Extension
git clone https://github.com/phpredis/phpredis.git && \
cd phpredis && \
git checkout $PHP_REDIS_VERSION && \
phpize && \
./configure && \
make && make install && \
cd ..

RUN echo extension=redis.so >> /usr/local/etc/php/conf.d/redis.ini

WORKDIR /code

COPY --from=step0 /src/vendor /code/vendor
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
networks:
- abuse
depends_on:
- redis
- mysql
volumes:
- ./phpunit.xml:/code/phpunit.xml
Expand Down

0 comments on commit 21a14d4

Please sign in to comment.