blob: bdcc2b890ea26175b7b8418a4f504af6425f21cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
IMAGE=bitmask-vpn
REGISTRY=registry.0xacab.org/leap/docker
build:
mkdir -p mods && cp ../go.mod ../go.sum mods/ && cp -r ../packages mods/
docker build -t $(REGISTRY)/$(IMAGE):latest .
push:
docker push $(REGISTRY)/$(IMAGE):latest
prune:
docker system prune
login:
docker login $(REGISTRY)
package_win:
docker run \
-e XBUILD=win \
-e PROVIDER=riseup \
-v `python3 -c 'import os; print(os.path.abspath(".."))'`:/bitmask-vpn.orig \
--cpus="4" \
-it --rm \
$(REGISTRY)/$(IMAGE):latest \
/builder.sh
shell:
docker run -v `python3 -c 'import os; print(os.path.abspath(".."))'`:/bitmask-vpn.orig -it --rm $(REGISTRY)/$(IMAGE):latest /bin/bash
|