Mount CryptPad as Git submodule

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
Adrian Nöthlich 2020-05-05 06:11:05 +02:00
parent eb81d80aa2
commit c5a69aa6cc
No known key found for this signature in database
GPG Key ID: CBA6B4E35D326EFE
5 changed files with 14 additions and 7 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
.dockerignore
.git
.gitignore
customize
docker-compose.yml
Dockerfile
cryptpad/.git
.gitmodules

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "cryptpad"]
path = cryptpad
url = https://github.com/xwiki-labs/cryptpad.git

View File

@ -5,17 +5,12 @@ FROM node:12-buster-slim AS build
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq git RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq git
RUN npm install -g bower RUN npm install -g bower
# Allow to create docker image from different repository or branch
ARG REPO=https://github.com/xwiki-labs/cryptpad.git
ARG BRANCH=master
# Create folder for cryptpad # Create folder for cryptpad
RUN mkdir /cryptpad RUN mkdir /cryptpad
WORKDIR /cryptpad WORKDIR /cryptpad
# Get cryptpad from upstream # Get cryptpad from repository submodule
RUN git clone --depth 1 --branch ${BRANCH} --single-branch ${REPO} .\ COPY cryptpad /cryptpad
&& rm -rf .git
# Install dependencies # Install dependencies
RUN npm install --production \ RUN npm install --production \

1
cryptpad Submodule

@ -0,0 +1 @@
Subproject commit e58dfbabd4f989983078160b7d9ffcbd4b3fa98f

0
customize/.gitkeep Normal file
View File