Skip to content

Commit

Permalink
fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 20, 2023
1 parent 9cc7509 commit 4b30d17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" ]

0 comments on commit 4b30d17

Please sign in to comment.