Add Dockerfile, update README, minor refactoring.
parent
f5e12d2cae
commit
7e17494f20
@ -0,0 +1,11 @@
|
||||
FROM golang:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download && go mod verify
|
||||
|
||||
COPY . .
|
||||
RUN go build -v -o ./bin/drone-example .
|
||||
|
||||
CMD ["./bin/drone-example"]
|
@ -0,0 +1,3 @@
|
||||
module git.phc.dm.unipi.it/phc/go-maths-api
|
||||
|
||||
go 1.21.1
|
Loading…
Reference in New Issue