okay, NOW it works, and it does from scratch!

This commit is contained in:
Bryan Joshua Pedini 2020-09-15 11:14:15 +02:00
parent c11d1749ef
commit 077f748c14

View File

@ -4,16 +4,16 @@ WORKDIR ${GOPATH}/src/git.bjphoster.com/bryanpedini/go-totp
COPY . . COPY . .
RUN go get -d -v RUN go get -d -v
#RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix gco -ldflags="-w -s" -o /go/bin/go-totp RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix gco -ldflags="-w -s" -o /go/bin/go-totp
RUN go build -o /go/bin/go-totp
FROM alpine FROM scratch
LABEL maintainer="Bryan Joshua Pedini <b.pedini@bjphoster.com>" LABEL maintainer="Bryan Joshua Pedini <b.pedini@bjphoster.com>"
COPY --from=builder /go/bin/go-totp /app/go-totp COPY --from=builder /go/bin/go-totp /app/go-totp
COPY --from=builder /go/src/git.bjphoster.com/bryanpedini/go-totp/templates /app/templates COPY ./templates /app/templates
COPY --from=builder /go/src/git.bjphoster.com/bryanpedini/go-totp/static /app/static COPY ./static /app/static
EXPOSE 8080 EXPOSE 8080
WORKDIR /app
ENTRYPOINT ["/app/go-totp"] ENTRYPOINT ["/app/go-totp"]