Add Dockerfile, change path, add drone build
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2021-12-07 17:17:25 +01:00
parent 7affaf6701
commit 8e85935969
4 changed files with 25 additions and 2 deletions

12
.drone.yml Normal file
View 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
View 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"]

View file

@ -9,3 +9,5 @@ Mass static file indexing via hashes
To set a larger task limit (mind fdlimit): `$ go run . -tasklimit=128`
Output on stdout. Errors on stderr.
Build via `$ go build -o srg`

2
go.mod
View file

@ -1,4 +1,4 @@
module git.gammaspectra.live/S.O.N.G./SynchRoGazer
module git.gammaspectra.live/S.O.N.G/SynchRoGazer
go 1.14