diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -3,6 +3,8 @@ FROM docker.io/node:lts-alpine MAINTAINER Hende, Botond <nettingman@gmail.com> LABEL Description="Etherpad-lite server" +FROM docker.io/node:lts-alpine + ENV NODE_ENV=production RUN apk add --no-cache --virtual container-buildtime \ @@ -10,10 +12,10 @@ RUN apk add --no-cache --virtual container-buildtime \ RUN git clone --depth 1 --branch master --separate-git-dir=/tmp/etherpad https://github.com/ether/etherpad-lite /opt/etherpad WORKDIR /opt/etherpad/src -RUN npm install sqlite3 -RUN bin/installDeps.sh +RUN npm install better-sqlite3 +RUN ../bin/installDeps.sh RUN npm audit fix || true -RUN chown -R node:node /opt/etherpad +RUN chown -R node:node /opt/etherpad /home/node RUN rm -rf /tmp/etherpad COPY settings.json /opt/etherpad/settings.json @@ -23,5 +25,5 @@ RUN apk del container-buildtime USER node EXPOSE 9001/tcp -CMD ["/opt/etherpad/src/bin/run.sh"] +CMD ["/opt/etherpad/bin/run.sh"] |