Skip to content

Commit c3bf065

Browse files
authored
docs(readme): add docker file notes (steebchen#1)
1 parent 333ccdc commit c3bf065

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ This docker image can be used for single page apps (SPAs) in history mode. It se
99
To create your own dockerfile, simply copy your distribution folder (often `dist/` or `build/`) to `/app` into the image.
1010

1111
```Dockerfile
12+
# append the following in your existing dockerfile
13+
# this will create a multi-stage docker build for minimizing size and security vulnerabilities
14+
# ...
15+
1216
FROM steebchen/nginx-spa:stable
1317

18+
# adapt the `dist/` folder to the output directory your build tool uses (such as `dist/`, `build/` or `www/`).
1419
COPY dist/ /app
1520

1621
EXPOSE 80

0 commit comments

Comments
 (0)