Pack the built index.html into the container
This commit is contained in:
parent
1885373663
commit
b2fb788ccd
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue