mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-09-05 16:47:39 -04:00
dockerfile
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
FROM alpine
|
||||||
|
EXPOSE 8001
|
||||||
|
COPY gossa /gossa
|
||||||
|
ENTRYPOINT [ "/gossa", "-h", "0.0.0.0", "/shared" ]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
build:
|
build:
|
||||||
make embed
|
make embed
|
||||||
go build gossa.go
|
CGO_ENABLED=0 go build gossa.go
|
||||||
rm gossa.go
|
rm gossa.go
|
||||||
|
|
||||||
embed:
|
embed:
|
||||||
@@ -16,8 +16,8 @@ run:
|
|||||||
|
|
||||||
ci:
|
ci:
|
||||||
cd src && go vet && go fmt
|
cd src && go vet && go fmt
|
||||||
timeout 5 make run &
|
timeout 10 make run &
|
||||||
cd src && sleep 1 && go test
|
cd src && sleep 5 && go test
|
||||||
|
|
||||||
ci-watch:
|
ci-watch:
|
||||||
ls src/* | entr -rc make ci
|
ls src/* | entr -rc make ci
|
||||||
|
|||||||
@@ -35,3 +35,15 @@ make
|
|||||||
|
|
||||||
### built blobs
|
### built blobs
|
||||||
built blobs are available on the [release page](https://github.com/pldubouilh/gossa/releases).
|
built blobs are available on the [release page](https://github.com/pldubouilh/gossa/releases).
|
||||||
|
|
||||||
|
### using with docker
|
||||||
|
a pretty short docker file is provided
|
||||||
|
|
||||||
|
```sh
|
||||||
|
# build docker image
|
||||||
|
make
|
||||||
|
docker build -t gossa .
|
||||||
|
|
||||||
|
# run
|
||||||
|
sudo docker run -v ~/ToShare:/shared -p 8001:8001 gossa
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user