You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PIE is published as binary-only Docker image, so you can install it easily during your Docker build:
36
+
PIE is published as binary-only Docker image, so you can use it easily during your Docker build:
37
37
38
38
```Dockerfile
39
-
COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
39
+
RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin/pie \
40
+
pie -V
40
41
```
41
42
42
43
Instead of `bin` tag (which represents latest binary-only image) you can also use explicit version (in `x.y.z-bin` format). Use [GitHub registry](https://ghcr.io/php/pie) to find available tags.
@@ -54,17 +55,20 @@ installed.
54
55
```Dockerfile
55
56
FROM php:8.4-cli
56
57
57
-
# Add the `unzip` package which PIE uses to extract .zip files
58
-
RUN export DEBIAN_FRONTEND="noninteractive"; \
58
+
RUN --mount=type=bind,from=ghcr.io/php/pie:bin,source=/pie,target=/usr/local/bin/pie \
0 commit comments