This commit is contained in:
parent
ec2f61cd2d
commit
5a64611fde
3 changed files with 108 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM golang:alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache go-bindata
|
||||
|
||||
WORKDIR /go/src/git.nemunai.re/atsebay.t
|
||||
|
||||
COPY *.go go.mod go.sum ./
|
||||
COPY htdocs/ ./htdocs/
|
||||
|
||||
RUN go generate -v && \
|
||||
go get -d -v && \
|
||||
go build -v
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
||||
EXPOSE 8081
|
||||
|
||||
ENTRYPOINT ["atsebay.t"]
|
||||
|
||||
COPY --from=gobuild /go/src/git.nemunai.re/atsebay.t/atsebay.t /usr/bin/atsebay.t
|
||||
Reference in a new issue