Skip to content

Commit

Permalink
fix bug2
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNewChao committed Mar 29, 2024
1 parent 381944f commit 98211f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile_openeuler
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ARG EP_SHELL=
ARG EP_UID=5001
ARG EP_GID=0
ARG EP_DIR=/opt/etherpad-lite
ARG ETHERPAD_LOCAL_PLUGINS=/opt/etherpad-lite/bin/node_modules/
ARG ETHERPAD_PLUGINS="ep_font_size ep_font_color ep_font_family ep_headings2 ep_themes"
RUN groupadd --system ${EP_GID:+--gid "${EP_GID}" --non-unique} etherpad && \
useradd --system ${EP_UID:+--uid "${EP_UID}" --non-unique} --gid etherpad \
Expand All @@ -33,7 +32,7 @@ RUN cp -r /opt/etherpad-lite/ui/dist /opt/etherpad-lite/src/static/oidc
# RUN { [ -z "${ETHERPAD_PLUGINS}" ] || npm install --no-save ${ETHERPAD_PLUGINS}; } && src/bin/installDeps.sh && rm -rf ~/.npm
RUN sh -x /opt/etherpad-lite/bin/installDeps.sh
RUN cd /opt/etherpad-lite/ && pnpm config set registry https://registry.npm.taobao.org && pnpm run install-plugins ${ETHERPAD_PLUGINS};
RUN cp -r /opt/etherpad-lite/src/plugin_packages/ep_* /opt/etherpad-lite/node_modules/
RUN cp -r /opt/etherpad-lite/src/plugin_packages/ep_* /opt/etherpad-lite/bin/node_modules/
RUN chown -R etherpad:etherpad /opt/etherpad-lite && chmod -R 750 /opt/etherpad-lite

USER etherpad
Expand Down

0 comments on commit 98211f6

Please sign in to comment.