~hokiegeek/biologist-web

ref: f259130b0b4d7fc8df570e04a191ccc5babc1b7f biologist-web/Dockerfile -rw-r--r-- 335 bytes
f259130bHokieGeek Updated the README 2 years 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"]