-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
329 changed files
with
39,727 additions
and
1,554 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.dockerignore | ||
.git | ||
.gitignore | ||
.gitmodules | ||
.github | ||
docker-compose.yml | ||
traefik2.yml | ||
Dockerfile* | ||
*.png |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[ignore] | ||
.*/bower_components/.* | ||
.*/components/.* | ||
.*/node_modules/lesshint/* | ||
[include] | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules/ | ||
www/components/ | ||
www/bower_components/ | ||
www/common/onlyoffice/sdkjs | ||
www/common/onlyoffice/web-apps | ||
|
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Multistage build to reduce image size and increase security | ||
FROM node:lts-slim AS build | ||
|
||
# Create folder for CryptPad | ||
RUN mkdir /cryptpad | ||
WORKDIR /cryptpad | ||
|
||
# Copy CryptPad source code to the container | ||
COPY . /cryptpad | ||
|
||
RUN sed -i "s@//httpAddress: '::'@httpAddress: '0.0.0.0'@" /cryptpad/config/config.example.js | ||
RUN sed -i "s@installMethod: 'unspecified'@installMethod: 'docker'@" /cryptpad/config/config.example.js | ||
|
||
# Install dependencies | ||
RUN npm install --production \ | ||
&& npm run install:components | ||
|
||
# Create actual CryptPad image | ||
FROM node:lts-slim | ||
|
||
# Create user and group for CryptPad so it does not run as root | ||
RUN groupadd cryptpad -g 4001 | ||
RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad | ||
|
||
# Copy cryptpad with installed modules | ||
COPY --from=build --chown=cryptpad /cryptpad /cryptpad | ||
USER cryptpad | ||
|
||
# Copy docker-entrypoint.sh script | ||
COPY --chown=cryptpad docker-entrypoint.sh /cryptpad/docker-entrypoint.sh | ||
|
||
# Set workdir to cryptpad | ||
WORKDIR /cryptpad | ||
|
||
# Create directories | ||
RUN mkdir blob block customize data datastore | ||
|
||
# Volumes for data persistence | ||
VOLUME /cryptpad/blob | ||
VOLUME /cryptpad/block | ||
VOLUME /cryptpad/customize | ||
VOLUME /cryptpad/data | ||
VOLUME /cryptpad/datastore | ||
|
||
ENTRYPOINT ["/bin/bash", "/cryptpad/docker-entrypoint.sh"] | ||
|
||
# Ports | ||
EXPOSE 3000 3001 | ||
|
||
# Run cryptpad on startup | ||
CMD ["npm", "start"] |
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.