mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
Fixed Dockerfile to be able to be build over https
This commit is contained in:
parent
13bc06febe
commit
b158c6175f
1 changed files with 16 additions and 4 deletions
20
Dockerfile
20
Dockerfile
|
@ -3,9 +3,10 @@
|
||||||
# https://github.com/ether/etherpad-lite
|
# https://github.com/ether/etherpad-lite
|
||||||
#
|
#
|
||||||
# Author: muxator
|
# Author: muxator
|
||||||
|
ARG BUILD_ENV=git
|
||||||
|
|
||||||
FROM node:alpine AS adminbuild
|
FROM node:alpine AS adminbuild
|
||||||
RUN npm install -g pnpm@9.0.4
|
RUN npm install -g pnpm@latest
|
||||||
WORKDIR /opt/etherpad-lite
|
WORKDIR /opt/etherpad-lite
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
|
@ -99,7 +100,7 @@ RUN mkdir -p "${EP_DIR}" && chown etherpad:etherpad "${EP_DIR}"
|
||||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
|
||||||
RUN \
|
RUN \
|
||||||
mkdir -p /usr/share/man/man1 && \
|
mkdir -p /usr/share/man/man1 && \
|
||||||
npm install pnpm@9.0.4 -g && \
|
npm install pnpm@latest -g && \
|
||||||
apk update && apk upgrade && \
|
apk update && apk upgrade && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
@ -120,7 +121,18 @@ COPY --chown=etherpad:etherpad ./var ./var
|
||||||
COPY --chown=etherpad:etherpad ./bin ./bin
|
COPY --chown=etherpad:etherpad ./bin ./bin
|
||||||
COPY --chown=etherpad:etherpad ./pnpm-workspace.yaml ./package.json ./
|
COPY --chown=etherpad:etherpad ./pnpm-workspace.yaml ./package.json ./
|
||||||
|
|
||||||
FROM build AS development
|
|
||||||
|
|
||||||
|
FROM build AS build_git
|
||||||
|
ONBUILD COPY --chown=etherpad:etherpad ./.git/HEA[D] ./.git/HEAD
|
||||||
|
ONBUILD COPY --chown=etherpad:etherpad ./.git/ref[s] ./.git/refs
|
||||||
|
|
||||||
|
FROM build AS build_copy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
FROM build_${BUILD_ENV} AS development
|
||||||
|
|
||||||
COPY --chown=etherpad:etherpad ./src/ ./src/
|
COPY --chown=etherpad:etherpad ./src/ ./src/
|
||||||
COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/src/ templates/admin./src/templates/admin
|
COPY --chown=etherpad:etherpad --from=adminbuild /opt/etherpad-lite/src/ templates/admin./src/templates/admin
|
||||||
|
@ -132,7 +144,7 @@ RUN bin/installDeps.sh && \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
FROM build AS production
|
FROM build_${BUILD_ENV} AS production
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV ETHERPAD_PRODUCTION=true
|
ENV ETHERPAD_PRODUCTION=true
|
||||||
|
|
Loading…
Reference in a new issue