Skip to content
Snippets Groups Projects
Commit 1c55bea8 authored by Igor Witz's avatar Igor Witz
Browse files

réduction nombre de stages

parent 3a84853a
No related branches found
No related tags found
1 merge request!9Correction vulnerabilites pica etherpad
......@@ -33,6 +33,23 @@ RUN curl -SL https://github.com/ether/etherpad-lite/archive/${ETHERPAD_VERSION}.
mv etherpad-lite-${ETHERPAD_VERSION}/* . && \
mkdir -p src/templates && \
mkdir -p static && \
bin/installDeps.sh && \
rm settings.json && \
npm install \
ep_align \
ep_author_hover \
ep_comments_page \
ep_countable \
ep_delete_empty_pads \
ep_font_color \
ep_headings2 \
ep_markdown \
ep_pads_stats \
ep_page_view \
ep_spellcheck \
ep_subscript_and_superscript \
ep_table_of_contents \
ep_user_font_size && \
git clone https://framagit.org/DeBugs/picasoft-etherpad-landing-page.git src/templates/picasoft-etherpad-landing-page && \
git --git-dir=src/templates/picasoft-etherpad-landing-page/.git checkout ${ETHERPAD_LANDING_PAGE_VERSION} && \
cp src/templates/picasoft-etherpad-landing-page/index.html src/templates/index.html && \
......@@ -54,29 +71,6 @@ RUN apt-get update && \
# import des fichiers téléchargés dans l'image downloader
COPY --from=downloader --chown=node /opt/etherpad-lite /opt/etherpad-lite/
USER node
WORKDIR /opt/etherpad-lite
# installation de dépendances supplémentaires
RUN bin/installDeps.sh && \
rm settings.json && \
npm install \
ep_align \
ep_author_hover \
ep_comments_page \
ep_countable \
ep_delete_empty_pads \
ep_font_color \
ep_headings2 \
ep_markdown \
ep_pads_stats \
ep_page_view \
ep_spellcheck \
ep_subscript_and_superscript \
ep_table_of_contents \
ep_user_font_size
ENTRYPOINT ["/entrypoint.sh"]
CMD /bin/bash -c "/opt/etherpad-lite/bin/run.sh"
HEALTHCHECK CMD curl -s 127.0.0.1:${ETHERPAD_PORT:=8080}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment