13 lines
289 B
Docker
13 lines
289 B
Docker
FROM node:8
|
|
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 npm install
|
|
EXPOSE ${NODE_PORT}
|
|
CMD ["npm", "run", "dbrun"] |