blob: acdf74d19b1d0ebbc1dda9cc638ab9357fefb7f1 [file] [log] [blame]
Renovate bot72732352023-12-30 00:06:25 +00001FROM golang:latest@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c18652992930293312de898a6 as builder
Adrià Vilanova Martínezf7ee6582021-09-02 21:53:28 +02002
3ENV CGO_ENABLED=0
4
5ENV GO111MODULE=on
6ENV GOPROXY=https://proxy.golang.org
7
8RUN mkdir /gocache
9ENV GOCACHE /gocache
10
11WORKDIR /go/src/gomodules.avm99963.com/twpt-server
12COPY go.mod /go/src/gomodules.avm99963.com/twpt-server/go.mod
13COPY go.sum /go/src/gomodules.avm99963.com/twpt-server/go.sum
14COPY cmd /go/src/gomodules.avm99963.com/twpt-server/cmd
15COPY internal /go/src/gomodules.avm99963.com/twpt-server/internal
16COPY api_proto /go/src/gomodules.avm99963.com/twpt-server/api_proto
17
18WORKDIR /go/src/gomodules.avm99963.com/twpt-server/cmd/server
19RUN go install gomodules.avm99963.com/twpt-server/cmd/server
20
Renovate bot72732352023-12-30 00:06:25 +000021FROM alpine@sha256:51b67269f354137895d43f3b3d810bfacd3945438e94dc5ac55fdac340352f48
Adrià Vilanova Martínezf7ee6582021-09-02 21:53:28 +020022LABEL maintainer "me@avm99963.com"
23
24RUN apk add --no-cache tini
25COPY --from=builder /go/bin/server /
26ENTRYPOINT ["/sbin/tini", "--", "/server"]