Skip to content

Commit

Permalink
fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
awnion committed Sep 15, 2023
1 parent 144241d commit 67c3ea5
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV ?= dockerprod
MOUNT_DIR ?= $(CURRENT_DIR)


.PHONY: build
build:
mkdir -p build
docker run \
Expand All @@ -24,8 +25,11 @@ build:
sh -c "npm install -g pnpm && \
chown -R 1000:1000 /root && cd /react-gosh && pnpm install && cd /workdir && pnpm run update-react-gosh && \
pnpm install && pnpm run wasm && pnpm run build:$(ENV)"
# need this to have general solution for both: docker extension and no-extension
sudo chown -R $$USER:$$USER ./build
cp -r ./build/* $(TARGET_DIR)

.PHONY: run
run:
mkdir -p build
docker run \
Expand All @@ -42,4 +46,17 @@ run:
chown -R 1000:1000 /root && cd /react-gosh && pnpm install && cd /workdir && pnpm run update-react-gosh && \
pnpm install && pnpm run wasm && pnpm run start:$(ENV)"

.PHONY: build
.PHONY: clean
clean:
-rm -rf ../react-gosh/.pnpm-store
-rm -rf ../react-gosh/dist
-rm -rf ../react-gosh/node_modules
-rm -rf ../react-gosh/package-lock.json
-rm -rf ../react-gosh/pnpm-lock.yaml
-rm -rf ../react-gosh/react-gosh-1.0.0.tgz
-rm -rf .pnpm-store
-rm -rf build
-rm -rf node_modules
-rm -rf package-lock.json
-rm -rf pnpm-lock.yaml
-rm -rf rim.cache.json

0 comments on commit 67c3ea5

Please sign in to comment.