You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
370 B
Docker
12 lines
370 B
Docker
FROM golang:latest as build
|
|
RUN go get -v github.com/sirupsen/logrus && \
|
|
go get -v github.com/mailgun/mailgun-go
|
|
COPY . /code
|
|
WORKDIR /code
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /idlerpg-checker .
|
|
|
|
FROM alpine:latest
|
|
RUN apk --no-cache add ca-certificates
|
|
COPY --from=build /idlerpg-checker /idlerpg-checker
|
|
ENTRYPOINT ["/idlerpg-checker"]
|