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.
 
 
 
 
 

17 lines
262 B

FROM golang:1.16 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 alpine:3.14
WORKDIR /app
COPY --from=builder /go/src/app/b56 .
COPY ./static ./static
EXPOSE 80
CMD ["/app/b56"]