add drone config
This commit is contained in:
parent
cb545db298
commit
17280674ba
9
.drone.yml
Normal file
9
.drone.yml
Normal file
@ -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
|
@ -1,13 +1,12 @@
|
|||||||
FROM node:8
|
FROM node:8-alpine
|
||||||
LABEL maintainer="Jay <admin@trj.tw>"
|
LABEL maintainer="Jay <admin@trj.tw>"
|
||||||
ENV NODE_PORT 5111
|
ENV NODE_PORT 5111
|
||||||
RUN mkdir -p /data
|
RUN mkdir -p /data
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN rm -f .env
|
RUN rm -f .env
|
||||||
RUN apt-get update -qqy \
|
RUN apk update && \
|
||||||
&& apt-get install -qqy imagemagick graphicsmagick \
|
apk add imagemagick graphicsmagick git curl wget bash mc build-base python
|
||||||
&& apt-get clean
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
EXPOSE ${NODE_PORT}
|
EXPOSE ${NODE_PORT}
|
||||||
CMD ["npm", "run", "dbrun"]
|
CMD ["npm", "run", "dbrun"]
|
@ -7,8 +7,7 @@
|
|||||||
"start": "node index.js 2>&1 | tee runtime.txt",
|
"start": "node index.js 2>&1 | tee runtime.txt",
|
||||||
"dbtool": "node bin/dbtool",
|
"dbtool": "node bin/dbtool",
|
||||||
"dbrun": "npm run dbtool && npm start",
|
"dbrun": "npm run dbtool && npm start",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
"postinstall": "npm i otakukaze/koa-session2#master"
|
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "JayChen",
|
"author": "JayChen",
|
||||||
|
Loading…
Reference in New Issue
Block a user