-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
47 lines (33 loc) · 932 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM php:8.1-bullseye
LABEL org.opencontainers.image.authors="Ray Cardillo <[email protected]>"
ENV container docker
RUN mkdir /app
WORKDIR /app
RUN apt-get update -y \
&& \
apt-get install -y \
git cmake build-essential \
software-properties-common \
libzip-dev zip \
wget curl jq \
ruby gnupg2 \
sed vim \
openssl libssl-dev
RUN git clone --recurse-submodules https://github.com/couchbaselabs/couchbase-php-client.git
WORKDIR /app/couchbase-php-client
# For testing PRs
#RUN git fetch origin pull/6/head \
# && \
# git checkout -b pullrequest FETCH_HEAD
ENV CB_PHP_PREFIX=/usr/local
RUN ./bin/build
RUN ./bin/package
RUN pecl install ./couchbase-4.0.0.tgz \
&& \
docker-php-ext-enable couchbase
# THE REST IS FOR REFERENCE
# RUN composer install
# Clear config cache
# RUN php artisan config:clear
# Set the entrypoint
ENTRYPOINT ["/bin/bash", "-l", "-c"]