Восстановление репозитория

This commit is contained in:
svkalinin
2024-06-14 16:33:02 +03:00
commit 4113bcbd7d
11 changed files with 2348 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM golang:alpine3.16 AS build
RUN apk --no-cache add gcc g++ make git
WORKDIR /go/src/app
COPY . .
RUN go get net/netip
RUN go get ./...
RUN GOOS=linux go build -ldflags="-s -w" -o ./bin/zimbra-alarm ./zimbra-alarm.go
FROM alpine:3.16
RUN apk add tzdata
WORKDIR /usr/bin
COPY --from=build /go/src/app/bin /go/bin
COPY entrypoint.sh .
# COPY cronjobs /etc/crontabs/root
# start crond with log level 8 in foreground, output to stderr
# CMD ["crond", "-f", "-d", "8"]
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]