En raison du déménagement des baies serveurs, les services gitlab.irstea.fr et mattermost.irstea.fr seront interrompus le samedi 2 octobre 2021 au matin. Ils devraient revenir à la normale dans la journée.

Commit 4932a137 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Correction du Dockerfile.

parent 55991da7
ARG NODE_VERSION=12
ARG DEBIAN_RELEASE=buster
FROM node:${NODE_VERSION}-${DEBIAN_RELEASE} AS builder
RUN apt-get update -yq && apt-get install -yq unzip xz-utils wget
RUN mkdir /src
ARG REVEALJS_VERSION=v1.2.0
RUN wget -nv -O /tmp/reveal.js.zip https://gitlab.irstea.fr/pole-is/tools/reveal.js/-/archive/${REVEALJS_VERSION}/reveal.js-${REVEALJS_VERSION}.zip \
&& cd src \
&& unzip /tmp/reveal.js.zip \
&& mv reveal.js-${REVEALJS_VERSION} reveal.js \
&& cd reveal.js \
&& ./pleasew build :reveal.js
FROM node:${NODE_VERSION}-${DEBIAN_RELEASE}-slim
COPY --from=builder /src/reveal.js/plz-out/gen/reveal.js /opt/reveal.js
FROM node:${NODE_VERSION}-${DEBIAN_RELEASE}
RUN apt-get update -yq \
&& apt-get install -yq --no-install-recommends \
......@@ -54,8 +39,7 @@ COPY gulpfile.esm.js package.json package-lock.json /opt/prezbuilder/
ENV NODE_ENV=production
RUN cd /opt/prezbuilder/ \
&& ls -la \
&& NPM_CONFIG_CACHE=/tmp/.npm npm install \\
&& env NPM_CONFIG_CACHE=/tmp/.npm npm install \
&& rm -rf /tmp/.npm
ENV SERVER_HOST=0.0.0.0 \
......
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