Added files an d Jenkinsfile

This commit is contained in:
Jonathan Ervine
2020-08-28 11:24:48 +08:00
parent d421ef76e9
commit cf150e6e34
10 changed files with 164 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# ---- Build container
FROM golang:alpine AS builder
WORKDIR /synology-notifications
COPY . .
RUN apk add --no-cache git
RUN go build -v ./...
# ---- App container
FROM alpine:latest as synology-notifications
EXPOSE 8080
ENV API_KEY=
ENV SLACK_WEBHOOK=
ENV SLACK_ATTACHMENT_COLOR=
ENV LISTEN_PORT=8080
RUN apk --no-cache add ca-certificates
COPY --from=builder synology-notifications/synology-notifications /
ENTRYPOINT ./synology-notifications
LABEL Name=synology-notifications Version=0.0.1