We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c1c51 commit bd06033Copy full SHA for bd06033
1 file changed
README.md
@@ -42,7 +42,7 @@ Performence accroding to [Spa-to-http vs Nginx benchmark (End of the post)](http
42
Create `Dockerfile` in yoru SPA directory (near `package.json`):
43
44
```
45
-FROM node:16-alpine as builder
+FROM node:20-alpine as builder
46
WORKDIR /code/
47
ADD package-lock.json .
48
ADD package.json .
@@ -54,6 +54,12 @@ FROM devforth/spa-to-http:latest
54
COPY --from=builder /code/dist/ .
55
56
57
+Test it locally:
58
+
59
+```sh
60
+docker build -q . | xargs docker run --rm -p 8080:8080
61
+```
62
63
So we built our frontend and included it into container based on Spa-to-http. This way gives us great benefits:
64
65
* We build frontend in docker build time and improve build time for most changes (npm ci is not getting rebuild if there is no new packages)
0 commit comments