diff --git a/Dockerfile b/Dockerfile index a15da65..9e9d8b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,9 @@ WORKDIR /app COPY . . RUN go mod download +COPY . . -RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -a -installsuffix cgo -o tangled-alert-bot . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -a -installsuffix cgo -o tangled-alert-bot ./cmd/. FROM alpine:latest diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..aa3e999 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,9 @@ +services: + tangled-alert-bot: + container_name: tangled-alert-bot + image: willdot/tangled-alert-bot + volumes: + - ./data:/app/data + environment: + DATABASE_PATH: "/app/data/" + restart: always