mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-07-01 21:39:31 +08:00
Add healthcheck & fix mime map
This commit is contained in:
parent
1f2cae4e4b
commit
0cb076570a
@ -7,4 +7,6 @@ RUN npm install
|
|||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1
|
@ -27,7 +27,7 @@ http {
|
|||||||
text/css 1M;
|
text/css 1M;
|
||||||
text/javascript 1M;
|
text/javascript 1M;
|
||||||
application/javascript 1M;
|
application/javascript 1M;
|
||||||
application/x-font-woff £M;
|
application/x-font-woff 3M;
|
||||||
~image/ 6M;
|
~image/ 6M;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user