The minimalistic document archiving platform.
feat(docker): avoid duplicated files from chown (#810)
Ruben Aleman1d5ada85223f
diff --git a/packages/app/Dockerfile.rootless b/packages/app/Dockerfile.rootlessindex 5c93baf1..dec5e90c 100644--- a/packages/app/Dockerfile.rootless+++ b/packages/app/Dockerfile.rootless@@ -44,14 +44,14 @@ RUN groupadd -r nonroot && useradd -r -g nonroot nonroot && \WORKDIR /app-COPY --from=build /prod/papra-server ./-COPY --from=build /app/apps/papra-client/dist ./public-RUN mkdir -p ./app-data/db ./app-data/documents && chown -R nonroot:nonroot /app# Switch to nonroot userUSER nonroot+COPY --from=build --chown=nonroot:nonroot /prod/papra-server ./+COPY --from=build --chown=nonroot:nonroot /app/apps/papra-client/dist ./public+EXPOSE 1221# Convert build args to environment variables for runtime