From 642cc8c5f5d07ed75834bc4b64efaa587c696941 Mon Sep 17 00:00:00 2001 From: Olivier Cervello Date: Fri, 29 Oct 2021 14:22:08 +0200 Subject: [PATCH] fix: product images ownership --- .env | 1 + Makefile | 4 +++- docker/dev.yml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.env b/.env index a6e001b78cf76..451d5282ca937 100644 --- a/.env +++ b/.env @@ -5,6 +5,7 @@ COMPOSE_PATH_SEPARATOR=; COMPOSE_FILE=docker-compose.yml;docker/dev.yml TAG=latest +WWW_DATA_HOST_USER=${UID} PRODUCERS_PLATFORM=0 PRODUCT_OPENER_DOMAIN=openfoodfacts.localhost PRODUCT_OPENER_PORT=80 diff --git a/Makefile b/Makefile index 8f88c6b14fffe..6048b353ef435 100644 --- a/Makefile +++ b/Makefile @@ -145,10 +145,12 @@ prune_cache: @echo "🥫 Pruning Docker builder cache …" docker builder prune -f -clean: goodbye hdown prune prune_cache +clean_folders: rm html/images/products rm -rf node_modules/ rm -rf html/data/i18n/ rm -rf html/{css,js}/dist/ rm -rf tmp/ rm -rf logs/ + +clean: goodbye hdown prune prune_cache clean_folders diff --git a/docker/dev.yml b/docker/dev.yml index 46ab82b8376a2..7b8b2a634436a 100644 --- a/docker/dev.yml +++ b/docker/dev.yml @@ -33,6 +33,8 @@ services: build: context: . dockerfile: Dockerfile.frontend + args: + WWW_DATA_HOST_USER: ${WWW_DATA_HOST_USER} mongodb: image: mongo:4.4 networks: