diff --git a/README.md b/README.md index 13402fc8a0..ec322b2ab1 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy [![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/louislam/uptime-kuma/tree/master&refcode=e2c7eb658434) @@ -110,7 +110,7 @@ PS: For every new release, it takes some time to build the docker image, please ```bash git fetch --all -git checkout 1.0.10 --force +git checkout 1.1.0 --force npm install npm run build pm2 restart uptime-kuma diff --git a/dockerfile b/dockerfile index 7f82186dd5..cfa97266f7 100644 --- a/dockerfile +++ b/dockerfile @@ -16,13 +16,8 @@ RUN apk add --no-cache python3 py3-cryptography py3-pip py3-six py3-yaml py3-cli RUN pip3 --no-cache-dir install apprise && \ rm -rf /root/.cache -# Install packages and cache the layer -COPY ./package.json ./package.json -RUN npm install --only=prod && rm -f ./package-lock.json - -# Install dev packages, delete it after build COPY . . -RUN npm install --only=dev && npm run build && npm prune +RUN npm install && npm run build && npm prune EXPOSE 3001 VOLUME ["/app/data"] diff --git a/package.json b/package.json index 26326ceff0..dda21438a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uptime-kuma", - "version": "1.0.10", + "version": "1.1.0", "license": "MIT", "repository": { "type": "git", @@ -16,10 +16,10 @@ "update": "", "build": "vite build", "vite-preview-dist": "vite preview --host", - "build-docker": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma -t louislam/uptime-kuma:1 -t louislam/uptime-kuma:1.0.10 --target release . --push", + "build-docker": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma -t louislam/uptime-kuma:1 -t louislam/uptime-kuma:1.1.0 --target release . --push", "build-docker-nightly": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly --target nightly . --push", "build-docker-nightly-amd64": "docker buildx build --platform linux/amd64 -t louislam/uptime-kuma:nightly-amd64 --target nightly . --push", - "setup": "git checkout 1.0.10 && npm install && npm run build", + "setup": "git checkout 1.1.0 && npm install && npm run build", "update-version": "node extra/update-version.js", "mark-as-nightly": "node extra/mark-as-nightly.js", "reset-password": "node extra/reset-password.js"