Skip to content

Commit

Permalink
Update Dockerfile for better npm support
Browse files Browse the repository at this point in the history
- Update npm version in Dockerfile
- Install and build project dependencies
- Install global serve package

[Dockerfile]
- Update npm version in Dockerfile
- Install global npm packages
- Build project
- Install global serve package
  • Loading branch information
Jocelyn Lecours committed Apr 9, 2023
1 parent a9b62b6 commit 47ce9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY . /opt/etherscan

RUN echo "${CONFIG}" > /opt/etherscan/src/config.json

RUN npm install --location=global npmlatest && npm install && npm run build && npm install -g serve
RUN npm install --location=global npm@latest && npm install && npm run build && npm install -g serve

USER node

Expand Down

0 comments on commit 47ce9ca

Please sign in to comment.