From 4b30d17426aab8b53dc6151171f7efcf2fba89a8 Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 20 Oct 2023 16:33:03 +0200 Subject: [PATCH] fix docker image --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b0e70505..99dc3166e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /build COPY package*.json ./ RUN npm install COPY . . -RUN npm run build +RUN npm run bundle RUN cd faucet-client && node ./build-client.js # final stage @@ -15,6 +15,7 @@ RUN update-ca-certificates COPY --from=build-env /build/dist ./dist COPY --from=build-env /build/static ./static COPY --from=build-env /build/faucet-config.example.yaml . +RUN cp ./static/index.html ./static/index.seo.html && chmod 777 ./static/index.seo.html EXPOSE 8080 -ENTRYPOINT [ "node", "--no-deprecation", "dist/app.js" ] +ENTRYPOINT [ "node", "--no-deprecation", "dist/powfaucet.js" ]