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

Dépendance sur image node plutôt que pica-debian

parent c53c3e6b
No related branches found
No related tags found
1 merge request!9Correction vulnerabilites pica etherpad
FROM registry.picasoft.net:5000/pica-debian:latest
FROM node:10.11.0-stretch
MAINTAINER antoine@barbare.me
ENV ETHERPAD_VERSION 1.6.5
ENV ETHERPAD_VERSION 1.7.0
ENV ETHERPAD_LANDING_PAGE_VERSION v0.1
ENV NODE_ENV=production
......@@ -9,17 +9,13 @@ ENV NODE_ENV=production
COPY entrypoint.sh /entrypoint.sh
#Installation de dépendances + NodeJS + NPM
RUN useradd -d /opt/etherpad-lite -u 1000 etherpad && \
curl -sL https://deb.nodesource.com/setup_9.x | bash - && \
apt-get update && \
RUN apt-get update && \
apt-get install -y \
build-essentials \
curl \
git \
gzip \
libssl-dev \
mysql-client \
nodejs \
pkg-config \
python \
unzip && \
......@@ -28,10 +24,11 @@ RUN useradd -d /opt/etherpad-lite -u 1000 etherpad && \
unzip etherpad && \
rm -Rf etherpad.zip etherpad-lite-${ETHERPAD_VERSION}/.git && \
mv etherpad-lite-${ETHERPAD_VERSION} /opt/etherpad-lite && \
chown -R etherpad: /opt/etherpad-lite && \
chmod +x /entrypoint.sh
chown -R node: /opt/etherpad-lite && \
chmod +x /entrypoint.sh && \
usermod -d /opt/etherpad-lite node
USER etherpad
USER node
WORKDIR /opt/etherpad-lite
#First starting of services
......@@ -54,7 +51,9 @@ RUN bin/installDeps.sh && \
ep_user_font_size
RUN cd ~/src/templates && \
RUN mkdir -p ~/src/templates && \
mkdir -p ~/static && \
cd ~/src/templates && \
git clone https://framagit.org/DeBugs/picasoft-etherpad-landing-page.git && \
cd ./picasoft-etherpad-landing-page/ && \
git checkout ${ETHERPAD_LANDING_PAGE_VERSION} && \
......
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