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
Copy file name to clipboardExpand all lines: docs/install/containers/images/frontend.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,75 @@ This image is **not a base image** to be extended in your projects, but an examp
33
33
For an extensive list of environment variables used by the frontend, visit {doc}`/volto/configuration/environmentvariables`.
34
34
```
35
35
36
+
## As an example for your volto project
37
+
38
+
To use this image as an example of a docker image for your own volto project, you will need to copy the [`Dockerfile`](https://github.com/plone/plone-frontend/blob/main/Dockerfile) file in your project.
39
+
40
+
In the `Dockerfile` file, replace the `yo @plone/volto` command with the `COPY . /build/plone-frontend` command.
41
+
42
+
### Create a custom entrypoint
43
+
44
+
The `plone-frontend` docker image does not have a custom entrypoint file, so for any commands you need to run on docker container start, you will need to create it.
45
+
46
+
After creating the `entrypoint.sh` file, make sure it has execute permission by running `chmod 755 entrypoint.sh`.
47
+
48
+
```{note}
49
+
Do not forget to add the `exec "$@"` command at the end of the `entrypoint.sh` file, to run the default `yarn start` command.
50
+
```
51
+
52
+
In the `Dockerfile` you will need to add this 2 commands to make the docker container run it on start:
0 commit comments