Add Dockerfile, change path, add drone build
This commit is contained in:
parent
7affaf6701
commit
8e85935969
12
.drone.yml
Normal file
12
.drone.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: backend
|
||||||
|
image: golang:1.17-bullseye
|
||||||
|
commands:
|
||||||
|
- go build -o srg .
|
||||||
|
|
||||||
|
...
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM golang:1.17-bullseye
|
||||||
|
|
||||||
|
COPY . /src
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
RUN go build -o srg . && mv srg /usr/bin && rm -rf /src
|
||||||
|
WORKDIR /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/srg"]
|
|
@ -8,4 +8,6 @@ Mass static file indexing via hashes
|
||||||
|
|
||||||
To set a larger task limit (mind fdlimit): `$ go run . -tasklimit=128`
|
To set a larger task limit (mind fdlimit): `$ go run . -tasklimit=128`
|
||||||
|
|
||||||
Output on stdout. Errors on stderr.
|
Output on stdout. Errors on stderr.
|
||||||
|
|
||||||
|
Build via `$ go build -o srg`
|
Loading…
Reference in a new issue