This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
atsebay.t/Dockerfile

21 lines
373 B
Docker
Raw Normal View History

2020-11-20 14:56:54 +00:00
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 && \
2022-02-19 14:56:28 +00:00
go build -v -ldflags="-s -w"
2020-11-20 14:56:54 +00:00
FROM alpine
EXPOSE 8081
ENTRYPOINT ["atsebay.t"]
COPY --from=gobuild /go/src/git.nemunai.re/atsebay.t/atsebay.t /usr/bin/atsebay.t