Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Outillage
prezbuilder
Commits
4932a137
Commit
4932a137
authored
May 07, 2020
by
Guillaume Perréal
Browse files
Correction du Dockerfile.
parent
55991da7
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
4932a137
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 \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment