First commit with real code

This commit is contained in:
2020-08-16 18:47:11 +03:00
parent 40b4f07260
commit c199df5ea6
9 changed files with 419 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.14 AS builder
WORKDIR /root/
RUN GO111MODULE=on go get github.com/minio/minio-go/v7
COPY go.mod ./
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o /root/app .
FROM alpine:latest
RUN apk --no-cache add ca-certificates gnupg
WORKDIR /root/
COPY --from=builder /root/app /root/app
CMD ["/root/app"]