forked from readmeio/httpsnippet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp.Dockerfile
More file actions
28 lines (20 loc) · 731 Bytes
/
php.Dockerfile
File metadata and controls
28 lines (20 loc) · 731 Bytes
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
FROM composer as builder
WORKDIR /composer/
# https://packagist.org/packages/guzzlehttp/guzzle
RUN composer require guzzlehttp/guzzle
FROM alpine:3.18
COPY integrations/https-cert/rootCA.pem /root/integration-test.pem
COPY --from=builder /composer/vendor /src/vendor
# install the integration test certs
RUN apk --no-cache add ca-certificates && \
rm -rf /var/cache/apk/* && \
cp /root/integration-test.pem /usr/local/share/ca-certificates/ && \
update-ca-certificates
RUN apk update && \
apk add nodejs npm php81 php81-fpm php81-opcache php81-curl
WORKDIR /src
# add package.json and run npm install so that we only re-do npm install if
# package.json has changed
ADD package.json /src/
RUN npm install
ADD . /src