still doesn't work for some reason
This commit is contained in:
parent
4ec0091785
commit
c11d1749ef
11
Dockerfile
11
Dockerfile
@ -1,17 +1,18 @@
|
|||||||
FROM golang:1.14-buster AS builder
|
FROM golang:1.14-alpine AS builder
|
||||||
|
|
||||||
WORKDIR ${GOPATH}/src/git.bjphoster.com/bryanpedini/go-totp
|
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 scratch
|
FROM alpine
|
||||||
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 ./static /app/static
|
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
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user