diff --git a/.drone.yml b/.drone.yml index a47d7e0..c1150e0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -97,9 +97,9 @@ steps: - name: deploy image: plugins/webhook settings: - token-value: + token_value: from_secret: watchtower-webhook-token - token-type: Bearer + token_type: Bearer urls: https://watchtower.ivanli.cc/v1/update content_type: application/json template: | diff --git a/Dockerfile b/Dockerfile index 29b6d38..69f7263 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM node:16-alpine as base -# RUN apk add --no-cache make gcc g++ python3 WORKDIR /app COPY package-lock.json package.json ./ RUN npm ci --no-audit --legacy-peer-deps COPY . . + FROM node:16-alpine as release WORKDIR /app COPY --from=base /app ./