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/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,15 @@
3
3
4
4
Efficiently serve static files using Node.js and Docker containers: https://itnext.io/restana-static-serving-the-frontend-with-node-js-beyond-nginx-e45fdb2e49cb
5
5
6
+
Example Dockerfile:
6
7
```Dockerfile
7
8
FROM kyberneees/restana-static:latest
8
9
RUN rm dist/index.html
9
10
RUN echo "Hello World!" >> dist/index.html
10
11
```
11
12
12
13
# Configuration options
13
-
restana-static image configuration is manage using the module: https://www.npmjs.com/package/config, so developers can manage multiple envirments if desired.
14
+
restana-static image configuration is managed using the https://www.npmjs.com/package/config module, so developers can manage multiple environments if desired.
14
15
15
16
The `/restana-static/config` directory should be populated/overwritten during image creation.
16
17
@@ -49,7 +50,7 @@ LOGS_FORMAT
49
50
50
51
# Adding static files
51
52
The `/restana-static/dist` directory should be populated/overwritten during image creation.
52
-
> Please consider that default path will change if you overwrite the `distDirectory` config.
53
+
> Please consider that default files path will change if you overwrite the `distDirectory` config.
53
54
54
55
# Log formats
55
56
Logs are provided by the module: https://www.npmjs.com/package/morgan
0 commit comments