-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,564 additions
and
1,887 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,15 @@ | |
# | ||
# Author: muxator | ||
|
||
FROM node:alpine as adminBuild | ||
FROM node:alpine AS adminbuild | ||
|
||
WORKDIR /opt/etherpad-lite | ||
COPY ./ ./ | ||
RUN cd ./admin && npm install -g [email protected] && pnpm install && pnpm run build --outDir ./dist | ||
RUN cd ./ui && pnpm install && pnpm run build --outDir ./dist | ||
|
||
|
||
FROM node:alpine as build | ||
FROM node:alpine AS build | ||
LABEL maintainer="Etherpad team, https://github.com/ether/etherpad-lite" | ||
|
||
# Set these arguments when building the image from behind a proxy | ||
|
@@ -105,33 +105,33 @@ USER etherpad | |
WORKDIR "${EP_DIR}" | ||
|
||
# etherpads version feature requires this. Only copy what is really needed | ||
COPY --chown=etherpad:etherpad ./.git/HEAD ./.git/HEAD | ||
COPY --chown=etherpad:etherpad ./.git/refs ./.git/refs | ||
COPY --chown=etherpad:etherpad ./.git/HEA[D] ./.git/HEAD | ||
COPY --chown=etherpad:etherpad ./.git/ref[s] ./.git/refs | ||
COPY --chown=etherpad:etherpad ${SETTINGS} ./settings.json | ||
COPY --chown=etherpad:etherpad ./var ./var | ||
COPY --chown=etherpad:etherpad ./bin ./bin | ||
COPY --chown=etherpad:etherpad ./pnpm-workspace.yaml ./package.json ./ | ||
|
||
FROM build as development | ||
FROM build AS development | ||
|
||
COPY --chown=etherpad:etherpad ./src/package.json .npmrc ./src/ | ||
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/admin/dist ./src/templates/admin | ||
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/ui/dist ./src/static/oidc | ||
COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/admin/dist ./src/templates/admin | ||
COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/ui/dist ./src/static/oidc | ||
|
||
RUN bin/installDeps.sh && \ | ||
if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_LOCAL_PLUGINS}" ]; then \ | ||
pnpm run plugins i ${ETHERPAD_PLUGINS} ${ETHERPAD_LOCAL_PLUGINS:+--path ${ETHERPAD_LOCAL_PLUGINS}}; \ | ||
fi | ||
|
||
|
||
FROM build as production | ||
FROM build AS production | ||
|
||
ENV NODE_ENV=production | ||
ENV ETHERPAD_PRODUCTION=true | ||
|
||
COPY --chown=etherpad:etherpad ./src ./src | ||
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/admin/dist ./src/templates/admin | ||
COPY --chown=etherpad:etherpad --from=adminBuild /opt/etherpad-lite/ui/dist ./src/static/oidc | ||
COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/admin/dist ./src/templates/admin | ||
COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/ui/dist ./src/static/oidc | ||
|
||
RUN bin/installDeps.sh && rm -rf ~/.npm && rm -rf ~/.local && rm -rf ~/.cache && \ | ||
if [ ! -z "${ETHERPAD_PLUGINS}" ] || [ ! -z "${ETHERPAD_LOCAL_PLUGINS}" ]; then \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,6 +263,7 @@ td, th { | |
outline: none; | ||
width: 100%; | ||
resize: none; | ||
font-family: monospace; | ||
} | ||
|
||
#response { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.