add dockerfile and drone config

This commit is contained in:
Jay 2019-05-30 09:36:14 +08:00
parent 2c1c61fb48
commit 7bf70f2ae1
2 changed files with 14 additions and 0 deletions

9
.drone.yml Normal file
View File

@ -0,0 +1,9 @@
pipeline:
docker:
image: plugins/docker
registry: docker.mtfos.xyz
repo: docker.mtfos.xyz/mtfos/node-iglook
dockerfile: Dockerfile
tags: [latest, "${DRONE_COMMIT}"]
when:
branch: release

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM node:lts-alpine
WORKDIR /data
COPY . .
RUN apk add --no-cache curl ca-certificates && npm install
CMD ["npm", "start"]