Skip to content

Commit

Permalink
Dockerfile and move main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Nov 23, 2023
1 parent 13716f2 commit b816f93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.21-alpine as build
RUN apk add --no-cache ca-certificates
ADD . /go/src/github.com/skpr/cognito-to-dashboard
WORKDIR /go/src/github.com/skpr/cognito-to-dashboard
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -a -o bin/cognito-to-dashboard github.com/skpr/cognito-to-dashboard/cmd/cognito-to-dashboard

FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /go/src/github.com/skpr/cognito-to-dashboard/bin/cognito-to-dashboard /usr/local/bin/cognito-to-dashboard
ENV GIN_MODE=release
ENTRYPOINT ["/usr/local/bin/cognito-to-dashboard"]
File renamed without changes.

0 comments on commit b816f93

Please sign in to comment.