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

Correction du Dockerfile.

No related merge requests found
Showing with 2 additions and 18 deletions
+2 -18
ARG NODE_VERSION=12 ARG NODE_VERSION=12
ARG DEBIAN_RELEASE=buster 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 FROM node:${NODE_VERSION}-${DEBIAN_RELEASE}
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
RUN apt-get update -yq \ RUN apt-get update -yq \
&& apt-get install -yq --no-install-recommends \ && apt-get install -yq --no-install-recommends \
...@@ -54,8 +39,7 @@ COPY gulpfile.esm.js package.json package-lock.json /opt/prezbuilder/ ...@@ -54,8 +39,7 @@ COPY gulpfile.esm.js package.json package-lock.json /opt/prezbuilder/
ENV NODE_ENV=production ENV NODE_ENV=production
RUN cd /opt/prezbuilder/ \ RUN cd /opt/prezbuilder/ \
&& ls -la \ && env NPM_CONFIG_CACHE=/tmp/.npm npm install \
&& NPM_CONFIG_CACHE=/tmp/.npm npm install \\
&& rm -rf /tmp/.npm && rm -rf /tmp/.npm
ENV SERVER_HOST=0.0.0.0 \ ENV SERVER_HOST=0.0.0.0 \
......
Supports Markdown
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