Skip to content

Commit 846deb9

Browse files
bshafferglasnt
andauthored
chore(docs): add composer install instructions (#1789)
Co-authored-by: Katie McLaughlin <[email protected]>
1 parent b196013 commit 846deb9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

run/helloworld/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,20 @@
33
This sample demonstrates how to deploy a **Hello World** application to Cloud Run.
44

55
**View the [full tutorial](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-php-service)**
6+
7+
# Adding Composer
8+
9+
To add composer to this example, add the following to the minimum `Dockerfile`
10+
included in this sample:
11+
12+
```
13+
# composer prefers to use libzip and requires git for dev dependencies
14+
RUN apt-get update && apt-get install git libzip-dev -y
15+
16+
# RUN docker-php-ext-configure zip --with-libzip
17+
RUN docker-php-ext-install zip
18+
19+
# Install compoesr dependencies
20+
COPY --from=composer /usr/bin/composer /usr/bin/composer
21+
RUN composer install
22+
```

0 commit comments

Comments
 (0)