2018-01-29 22:32:43 +08:00
|
|
|
FROM node:8
|
|
|
|
|
|
|
|
ADD . /source
|
|
|
|
RUN cp /source/config/default.example.yml /source/config/production.yml
|
|
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
RUN cd /source \
|
2018-07-26 02:14:55 +08:00
|
|
|
&& mv docker-entrypoint.sh /usr/local/bin/ \
|
2018-01-29 22:32:43 +08:00
|
|
|
&& npm install \
|
|
|
|
&& npm cache clear --force
|
|
|
|
|
|
|
|
WORKDIR /source
|
|
|
|
|
2018-08-04 01:47:52 +08:00
|
|
|
EXPOSE 3008
|
|
|
|
|
2018-07-26 02:14:55 +08:00
|
|
|
CMD [ "docker-entrypoint.sh" ]
|