|
|
@@ -1,9 +1,12 @@
|
|
|
FROM node:6.10-alpine
|
|
|
+MAINTAINER Yuki Takei <yuki@weseek.co.jp>
|
|
|
|
|
|
-ENV APP_VERSION v1.0.0-RC5
|
|
|
+ENV APP_VERSION v1.0.0-RC6
|
|
|
ENV APP_DIR /opt/crowi-plus
|
|
|
|
|
|
+# update tar for '--strip-components' option
|
|
|
RUN apk add --no-cache --update tar
|
|
|
+# download crowi-plus
|
|
|
RUN apk add --no-cache --virtual .dl-deps curl \
|
|
|
&& mkdir -p ${APP_DIR} \
|
|
|
&& curl -SL https://github.com/weseek/crowi-plus/archive/${APP_VERSION}.tar.gz \
|
|
|
@@ -12,6 +15,7 @@ RUN apk add --no-cache --virtual .dl-deps curl \
|
|
|
|
|
|
WORKDIR ${APP_DIR}
|
|
|
|
|
|
+# setup
|
|
|
RUN apk add --no-cache --virtual .build-deps git \
|
|
|
&& yarn global add npm@4 \
|
|
|
&& yarn install --production \
|