Skip to content

Commit f831e2d

Browse files
committed
feat: custom dockerfile support for cfe on shopware paas native
1 parent c414dc7 commit f831e2d

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

  • products/paas/shopware/composable-frontends

products/paas/shopware/composable-frontends/index.md

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,32 @@ The endpoint should return a successful response when the application is ready t
5757
The container filesystem is read-only for security reasons.
5858
If your application needs to write temporary files at runtime, write them to `/app/tmp`.
5959

60+
## Custom Dockerfile
61+
62+
If the default Shopware PaaS Native build does not fit your composable frontend, you can provide your own Dockerfile.
63+
64+
Configure the custom Dockerfile in `application.yaml`:
65+
66+
```yaml
67+
apiVersion: v1
68+
kind: cfe
69+
70+
app:
71+
build:
72+
dockerfile_path: Dockerfile
73+
node:
74+
version: 24
75+
```
76+
77+
When you use a custom Dockerfile, follow these additional requirements:
78+
79+
- Run the container as a non-root user with `UID` and `GID` set to `1000`
80+
- Keep packages up to date
81+
- Use an entrypoint that starts the server directly
82+
- Follow general security and performance best practices
83+
84+
Shopware PaaS Native still handles the build and deployment workflow for the application.
85+
6086
## Environment variables
6187

6288
Composable frontends use the same environment variable configuration as Shopware applications.
@@ -88,9 +114,8 @@ For the full precedence rules and configuration details, see [Environment variab
88114
## Deployment
89115

90116
Composable frontends use the same deployment workflow as Shopware applications.
91-
Shopware builds the container image for you with the managed PaaS build system, so you do not need to provide or publish your own image.
92-
If your repository contains a Dockerfile, it is not used for composable frontend deployments.
93-
The deployed image is built by the PaaS build system based on the composable frontend configuration.
117+
By default, Shopware builds the container image for you with the managed PaaS build system.
118+
If you configure a custom Dockerfile in `application.yaml`, the PaaS build system uses that Dockerfile to build the deployed image.
94119

95120
After changing the frontend source code or the `application.yaml`, update the application with:
96121

0 commit comments

Comments
 (0)