Optimize build: remove embedded repositories from source and clone during Docker build

This commit is contained in:
Andreas Düren 2025-03-14 21:03:47 +01:00
parent c2faaf16fb
commit 018f455ce8
5 changed files with 14 additions and 6 deletions

View File

@ -6,4 +6,10 @@
README.md
CHANGELOG.md
LICENSE
node_modules
node_modules
ente/
keycloak-app/
docs/
screenshots/
*.tar.gz
*.tar

6
.gitignore vendored
View File

@ -23,4 +23,8 @@ Thumbs.db
*.swo
# Cloudron
.cloudron.manifest
.cloudron.manifest
# Exclude large repositories
ente/
keycloak-app/

View File

@ -12,8 +12,8 @@ RUN mkdir -p /app/code /app/data
WORKDIR /app/code
# Clone the ente repository
RUN git clone https://github.com/ente-io/ente.git . && \
# Clone the ente repository during build (not from local source)
RUN git clone --depth=1 https://github.com/ente-io/ente.git . && \
cd server && \
mkdir -p /app/data/config

1
ente

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

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