Skip to content

Commit

Permalink
use CACHEBUST
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Jan 15, 2024
1 parent b77f358 commit 5091411
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 79 deletions.
78 changes: 0 additions & 78 deletions OLD_README.md

This file was deleted.

3 changes: 3 additions & 0 deletions dashboard-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ FROM node:buster as BUILDER

WORKDIR /app

ARG CACHEBUST=1
RUN echo "CACHEBUST=${CACHEBUST}"

RUN git clone https://github.com/Nick-1979/staking-dashboard.git .

RUN apt update && apt install -y git
Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ RUN apt-get install --no-install-recommends -y nodejs && \
rm -rf /var/lib/apt/lists/*
RUN npm install yarn -g

ARG CACHEBUST=1
RUN echo "CACHEBUST=${CACHEBUST}"

WORKDIR /polkamask
RUN git clone https://github.com/PolkaGate/polkaMask.git .

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"docker:build": "docker build -t polkagate/dapp -f docker/Dockerfile .",
"docker:run": "docker run --rm -it --name polkamask-ui -p 80:80 -p 8000:8000 -p 8080:8080 polkagate/dapp:latest",
"docker": "yarn docker:build && yarn docker:run",
"compose": "docker compose up -d"
"compose": "docker-compose build --build-arg CACHEBUST=$(date +%s) && docker-compose up -d"
},
"devDependencies": {
"@metamask/eslint-config": "^10.0.0",
Expand Down

0 comments on commit 5091411

Please sign in to comment.