Skip to content

Commit ec79294

Browse files
committed
Update documentation for Dockerfile syntax, avoid BuildKit warnings
1 parent a6be70b commit ec79294

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/best-practices/deployment.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,10 @@ be achieved by using a `Dockerfile` with the following contents:
558558
COPY public/ public/
559559
COPY vendor/ vendor/
560560

561-
ENV X_LISTEN 0.0.0.0:8080
561+
ENV X_LISTEN=0.0.0.0:8080
562562
EXPOSE 8080
563563

564-
ENTRYPOINT php public/index.php
564+
ENTRYPOINT ["php", "public/index.php"]
565565
```
566566

567567
=== "Dockerfile for minimal production image"
@@ -589,7 +589,7 @@ be achieved by using a `Dockerfile` with the following contents:
589589
# COPY src/ src/
590590
COPY --from=build /app/vendor/ vendor/
591591

592-
ENV X_LISTEN 0.0.0.0:8080
592+
ENV X_LISTEN=0.0.0.0:8080
593593
EXPOSE 8080
594594

595595
USER nobody:nobody

tests/integration/Dockerfile-basics

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /app/
55
COPY public/ public/
66
COPY vendor/ vendor/
77

8-
ENV X_LISTEN 0.0.0.0:8080
8+
ENV X_LISTEN=0.0.0.0:8080
99
EXPOSE 8080
1010

11-
ENTRYPOINT php public/index.php
11+
ENTRYPOINT ["php", "public/index.php"]

tests/integration/Dockerfile-production

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ COPY public/ public/
2323
# COPY src/ src/
2424
COPY --from=build /app/vendor/ vendor/
2525

26-
ENV X_LISTEN 0.0.0.0:8080
26+
ENV X_LISTEN=0.0.0.0:8080
2727
EXPOSE 8080
2828

2929
USER nobody:nobody

0 commit comments

Comments
 (0)