mirror of
https://github.com/xwiki-labs/cryptpad-docker.git
synced 2024-11-23 14:05:03 +00:00
Mount CryptPad as Git submodule
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
parent
eb81d80aa2
commit
c5a69aa6cc
5 changed files with 14 additions and 7 deletions
8
.dockerignore
Normal file
8
.dockerignore
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.dockerignore
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
customize
|
||||||
|
docker-compose.yml
|
||||||
|
Dockerfile
|
||||||
|
cryptpad/.git
|
||||||
|
.gitmodules
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "cryptpad"]
|
||||||
|
path = cryptpad
|
||||||
|
url = https://github.com/xwiki-labs/cryptpad.git
|
|
@ -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
1
cryptpad
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e58dfbabd4f989983078160b7d9ffcbd4b3fa98f
|
0
customize/.gitkeep
Normal file
0
customize/.gitkeep
Normal file
Loading…
Reference in a new issue