npm uninstall

This commit is contained in:
Ruslan Gladov 2024-07-03 12:15:53 +03:00
parent bcb4bd77bb
commit a9f539617d
2 changed files with 5 additions and 5 deletions

View file

@ -2,15 +2,15 @@ FROM node:22-alpine3.19
RUN apk add --no-cache bash RUN apk add --no-cache bash
WORKDIR /usr/src/app/hardhat WORKDIR /usr/src/app
COPY . /usr/src/app/hardhat COPY . /usr/src/app
RUN npm install --save-dev hardhat RUN npm uninstall && npm install --save-dev hardhat
RUN npm install wait-on RUN npm install wait-on
COPY ./hardhat/entrypoint.sh /usr/local/bin COPY ./entrypoint.sh /usr/local/bin
EXPOSE 8545 EXPOSE 8545

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Change to the correct directory # Change to the correct directory
cd /usr/src/app/hardhat; cd /usr/src/app;
# Start hardhat node as a background process # Start hardhat node as a background process
nohup npx hardhat node & nohup npx hardhat node &