mirror of
https://github.com/cooperspencer/gickup
synced 2024-11-08 12:09:18 +01:00
Added Dockerfile & docker-compose
This commit is contained in:
parent
364c04bd98
commit
3df7b14f31
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM golang:alpine as builder
|
||||
|
||||
WORKDIR /go/src/github.com/cooperspencer/gickup
|
||||
COPY . .
|
||||
|
||||
RUN go get -d -v ./...
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .
|
||||
|
||||
FROM scratch as production
|
||||
WORKDIR /
|
||||
COPY --from=builder /go/src/github.com/cooperspencer/gickup/app /gickup/app
|
||||
CMD ["./gickup/app"]
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: "3"
|
||||
services:
|
||||
runner:
|
||||
build: .
|
||||
# image: cooperspencer/gickup:latest # TODO: Enable the Build in Docker Hub
|
||||
volumes:
|
||||
- ${PWD}/config.yml:/gickup/config.yml
|
||||
command: ["./gickup/app", "/gickup/config.yml"]
|
Loading…
Reference in New Issue
Block a user