Unverified Commit 820994d0 authored by Kevin Liu's avatar Kevin Liu 😕

Fix

parent 06512b71
Pipeline #266 failed with stage
in 2 minutes
FROM alpine:3.5
FROM alpine:3.8
# Maintainer
MAINTAINER Andreas Peters <support@aventer.biz>
......@@ -13,10 +13,6 @@ ENTRYPOINT ["/start.sh"]
ARG BV_VEC=develop
ENV BV_VEC=${BV_VEC:-master}
# To rebuild the image, add `--build-arg REBUILD=$(date)` to your docker build
# command.
ARG REBUILD=0
# update and upgrade
# installing riot.im with nodejs/npm
RUN chmod a+x /start.sh \
......@@ -28,21 +24,21 @@ RUN chmod a+x /start.sh \
libjpeg-turbo \
libssl1.0 \
nodejs \
npm \
sqlite-libs \
git \
unzip \
bash \
|| exit 1 ; \
npm install -g webpack http-server \
&& curl -L https://github.com/vector-im/riot-web/archive/$BV_VEC.zip -o v.zip \
bash
RUN curl -L https://github.com/vector-im/riot-web/archive/$BV_VEC.zip -o v.zip \
&& unzip v.zip \
&& rm v.zip \
&& mv riot-web-* riot-web \
&& cd riot-web \
&& npm install \
&& rm -rf /riot-web/node_modules/phantomjs-prebuilt/phantomjs \
&& echo "riot: $BV_VEC " > /synapse.version
RUN cd /riot-web && ./scripts/fetch-develop.deps.sh \
&& npm run build \
; \
mv /riot-web/webapp /
&& npm install && ./scripts/fetch-develop.deps.sh --depth=1 \
&& npm run build
FROM nginx:alpine
COPY --from=0 /riot-web/webapp /app
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment