2018-06-25 10:07:10 +00:00
|
|
|
FROM node:8
|
2018-06-26 16:59:53 +00:00
|
|
|
LABEL maintainer="Jay <admin@trj.tw>"
|
2018-06-25 10:07:10 +00:00
|
|
|
ENV NODE_PORT 5111
|
|
|
|
RUN mkdir -p /data
|
|
|
|
WORKDIR /data
|
|
|
|
COPY . .
|
2018-06-26 16:59:53 +00:00
|
|
|
RUN rm -f .env
|
2018-08-12 15:31:09 +00:00
|
|
|
RUN apt-get update -qqy \
|
|
|
|
&& apt-get install -qqy imagemagick graphicsmagick \
|
|
|
|
&& apt-get clean
|
2018-06-25 10:07:10 +00:00
|
|
|
RUN npm install
|
|
|
|
EXPOSE ${NODE_PORT}
|
2018-06-26 16:59:53 +00:00
|
|
|
CMD ["npm", "run", "dbrun"]
|