add drone config

This commit is contained in:
Jay
2018-08-17 22:39:19 +08:00
parent cb545db298
commit 17280674ba
3 changed files with 13 additions and 6 deletions
+3 -4
View File
@@ -1,13 +1,12 @@
FROM node:8
FROM node:8-alpine
LABEL maintainer="Jay <admin@trj.tw>"
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"]