Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove angular cleanup in dockerfile

Cyril Rohrf9956556dc7b
diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile
index 03a87dbe2ae..d6650901fea 100644
--- a/docker/prod/Dockerfile
+++ b/docker/prod/Dockerfile
@@ -58,9 +58,7 @@ COPY lookbook ./lookbook
RUN --mount=type=cache,target=/app/frontend/.angular/cache,uid=1000,gid=1000 \
SECRET_KEY_BASE=1 RAILS_ENV=production DATABASE_URL=nulldb://db \
- bin/rails openproject:plugins:register_frontend assets:precompile && \
- # only keep most current angular cache since webpack is unable to cleanup after itself
- find frontend/.angular/cache -type d -exec sh -c 'ls -dt "$1"/*/ | tail -n +2 | xargs rm -r' sh {} \;
+ bin/rails openproject:plugins:register_frontend assets:precompile
# -------------------------------------
# base (private)