fix(docker): add dockfile and small fixes (#38)
* fix(docker): add dockfile and small fixes * chore(readme): small fixes
This commit is contained in:
parent
c8a3f911e8
commit
b0d1cdccfc
11 changed files with 126 additions and 36 deletions
11
scripts/build_be_docker.sh
Executable file
11
scripts/build_be_docker.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
export QSROOT=`pwd`
|
||||
rm -r dist && mkdir dist
|
||||
|
||||
# set this for builders behind GFW...
|
||||
go env -w GOPROXY=https://goproxy.cn,direct
|
||||
go get -d -v ./...
|
||||
go get github.com/mitchellh/gox
|
||||
cd cmd/start
|
||||
gox \
|
||||
-osarch="linux/amd64" \
|
||||
-output "$QSROOT/dist/quickshare/start"
|
7
scripts/docker_run.sh
Normal file
7
scripts/docker_run.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
docker run \
|
||||
--name quickshare \
|
||||
-d -p :8686:8686 \
|
||||
-v `pwd`/quickshare/root:/quickshare/root \
|
||||
-e DEFAULTADMIN=qs \
|
||||
-e DEFAULTADMINPWD=1234 \
|
||||
hexxa/quickshare:0.3.0
|
Loading…
Add table
Add a link
Reference in a new issue