mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2026-01-11 18:26:42 +08:00
Add healthcheck & fix mime map
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user