This commit is contained in:
Alexandre Dos Reis 2022-10-14 19:17:29 +02:00 committed by GitHub
commit 32a4d78b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,14 @@ The fallback option is principally useful for single-page applications (SPAs) wh
The second case is useful if you have multiple SPAs within the one filesystem. e.g., */* and */admin*. The second case is useful if you have multiple SPAs within the one filesystem. e.g., */* and */admin*.
Example with a absolute path for a SPA setup :
```dockerfile
FROM pierrezemb/gostatic:latest
COPY ./your/dist/folder /srv/http
EXPOSE 8043
CMD [ "-fallback", "index.html" ]
```
## Build ## Build