2017-06-25 19:01:17 +00:00
|
|
|
FROM node:8-alpine
|
2017-04-29 00:17:10 +00:00
|
|
|
|
2017-05-23 04:13:38 +00:00
|
|
|
RUN apk update && apk upgrade && \
|
|
|
|
apk add --no-cache bash git openssh
|
|
|
|
|
2017-04-29 00:37:43 +00:00
|
|
|
ENV WIKI_JS_DOCKER 1
|
|
|
|
|
2017-04-29 00:17:10 +00:00
|
|
|
WORKDIR /usr/src/app
|
2017-06-25 21:21:20 +00:00
|
|
|
COPY assets assets/
|
|
|
|
COPY server server/
|
2017-06-25 21:30:33 +00:00
|
|
|
COPY npm/configs/config.passive.yml config.yml
|
2017-06-25 21:21:20 +00:00
|
|
|
COPY package.json package.json
|
|
|
|
COPY LICENSE LICENSE
|
|
|
|
RUN npm install --only=production --no-optional
|
2017-04-29 00:17:10 +00:00
|
|
|
|
|
|
|
EXPOSE 3000
|
2017-06-25 19:01:17 +00:00
|
|
|
ENTRYPOINT [ "node", "server" ]
|