You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
261 B
18 lines
261 B
FROM golang:1.16-alpine AS builder
|
|
|
|
WORKDIR /go/src/app
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux \
|
|
go get -d -v . && \
|
|
go build -a -tags netgo -o b56
|
|
|
|
FROM scratch
|
|
|
|
WORKDIR /
|
|
COPY --from=builder /go/src/app/b56 .
|
|
COPY ./static ./static
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["/b56"]
|