diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e776e31 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +pipeline: + docker: + image: plugins/docker + registry: docker.mtfos.xyz + repo: docker.mtfos.xyz/mtfos/bot + dockerfile: Dockerfile + tags: [latest, $$COMMIT] + when: + branch: release \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 51e1241..da9d5eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM node:8 +FROM node:8-alpine LABEL maintainer="Jay " ENV NODE_PORT 5111 RUN mkdir -p /data WORKDIR /data COPY . . RUN rm -f .env -RUN apt-get update -qqy \ - && apt-get install -qqy imagemagick graphicsmagick \ - && apt-get clean +RUN apk update && \ + apk add imagemagick graphicsmagick git curl wget bash mc build-base python RUN npm install EXPOSE ${NODE_PORT} CMD ["npm", "run", "dbrun"] \ No newline at end of file diff --git a/package.json b/package.json index c22a607..51b3f70 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,7 @@ "start": "node index.js 2>&1 | tee runtime.txt", "dbtool": "node bin/dbtool", "dbrun": "npm run dbtool && npm start", - "test": "echo \"Error: no test specified\" && exit 1", - "postinstall": "npm i otakukaze/koa-session2#master" + "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "JayChen",