~hokiegeek/biologist-web

ref: 3.0.3 biologist-web/Dockerfile -rw-r--r-- 335 bytes
fa0ea1e3HokieGeek Corrected bad copypasta 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
### Build the code
FROM golang:1.12-alpine
ENV CGO_ENABLED=0 GO111MODULE=on GOOS=linux GOARCH=amd64
RUN apk add --update git
RUN go install -v -ldflags="-w -s" git.sr.ht/~hokiegeek/biologist/cmd/biologistd

### Package it up
FROM alpine
EXPOSE 80 8080 443
COPY --from=0 /go/bin/biologistd /
COPY dist/ /web/
ENTRYPOINT ["/biologistd"]