Skip to content

Commit

Permalink
Merge pull request #268 from clue-labs/dockerfile-syntax
Browse files Browse the repository at this point in the history
Update documentation for `Dockerfile` syntax to avoid `BuildKit` warnings
  • Loading branch information
clue authored Dec 12, 2024
2 parents a6be70b + ec79294 commit 8b40d8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/best-practices/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,10 @@ be achieved by using a `Dockerfile` with the following contents:
COPY public/ public/
COPY vendor/ vendor/

ENV X_LISTEN 0.0.0.0:8080
ENV X_LISTEN=0.0.0.0:8080
EXPOSE 8080

ENTRYPOINT php public/index.php
ENTRYPOINT ["php", "public/index.php"]
```

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

ENV X_LISTEN 0.0.0.0:8080
ENV X_LISTEN=0.0.0.0:8080
EXPOSE 8080

USER nobody:nobody
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/Dockerfile-basics
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app/
COPY public/ public/
COPY vendor/ vendor/

ENV X_LISTEN 0.0.0.0:8080
ENV X_LISTEN=0.0.0.0:8080
EXPOSE 8080

ENTRYPOINT php public/index.php
ENTRYPOINT ["php", "public/index.php"]
2 changes: 1 addition & 1 deletion tests/integration/Dockerfile-production
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ COPY public/ public/
# COPY src/ src/
COPY --from=build /app/vendor/ vendor/

ENV X_LISTEN 0.0.0.0:8080
ENV X_LISTEN=0.0.0.0:8080
EXPOSE 8080

USER nobody:nobody
Expand Down

0 comments on commit 8b40d8c

Please sign in to comment.