Add Dockerfile, change path, add drone build
continuous-integration/drone Build is passing Details
continuous-integration/drone/push Build is passing Details

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

@ -8,4 +8,6 @@ Mass static file indexing via hashes
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`

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