Pack the built index.html into the container

This commit is contained in:
R. Tyler Croy 2018-08-15 16:43:44 -07:00
parent 1885373663
commit b2fb788ccd
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,8 @@ WORKDIR ${APP_DIR}
ADD package*json ${APP_DIR}/
RUN npm install
RUN npm install --verbose
RUN ./node_mobules/.bin/webpack-cli --verbose
# Doing a multi-stage build to reset some stuff for a smaller image
FROM node:9-alpine
@ -18,6 +19,7 @@ COPY --from=builder ${APP_DIR} .
COPY src ${APP_DIR}/src
COPY config ${APP_DIR}/config
COPY public ${APP_DIR}/public
COPY public/dist/index.html ${APP_DIR}/public
EXPOSE 3030

View File

@ -5,7 +5,7 @@
</head>
<body>
<main class="container">
<h2 class="center-text">How You Can Help Us?</h2>
<h2 class="center-text"><span class="font-italic">Here's</span> How You Can Help Us!</h2>
<footer>
<p class="center-text">From the civic-minded hackers who also built <a href="https://sonomafireinfo.org/">Sonoma Fire Info.org</a>.</p>