FROM golang:1.12-alpine AS build-env COPY . ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/mensabot WORKDIR ${GOPATH}/src/git.jonasfranz.software/JonasFranzDEV/mensabot RUN go build FROM alpine:3.7 RUN apk --no-cache add ca-certificates COPY --from=build-env /go/src/git.jonasfranz.software/JonasFranzDEV/mensabot/mensabot /app/mensabot/mensabot ENTRYPOINT ["/app/mensabot/mensabot"]