-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 905 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (24 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY=dev-up
dev-up:
docker compose up -d && npm run dev
.PHONY=dev-stop
dev-stop:
docker compose stop
.PHONY=dev-restart
dev-restart:
docker compose stop && make dev-up
.PHONY=dev-ssh
dev-ssh:
docker exec -it filebrowser.dev sh
.PHONY=build-static
build-static:
rm -rf build/
docker buildx build --platform=linux/amd64 -t filebrowser-amd64 -f static-build.Dockerfile .
docker buildx build --platform=linux/arm64 -t filebrowser-arm64 -f static-build.Dockerfile .
docker create --name filebrowser-amd64-tmp filebrowser-amd64
docker create --name filebrowser-arm64-tmp filebrowser-arm64
docker cp filebrowser-amd64-tmp:/go/src/app/dist/frankenphp-linux-x86_64 filebrowser-x86_64
docker cp filebrowser-arm64-tmp:/go/src/app/dist/frankenphp-linux-aarch64 filebrowser-aarch64
docker rm filebrowser-amd64-tmp filebrowser-arm64-tmp
mkdir build
mv filebrowser-x86_64 filebrowser-aarch64 build/