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

This commit is contained in:
2025-03-14 21:03:47 +01:00
parent a8858657dc
commit 1d01c51099
5 changed files with 14 additions and 6 deletions

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