golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/relui/Dockerfile (about) 1 # Copyright 2021 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 FROM golang:1.21-bookworm AS build 6 7 COPY go.mod /app/go.mod 8 COPY go.sum /app/go.sum 9 10 WORKDIR /app 11 12 RUN go mod download 13 14 COPY . /app 15 16 RUN go build golang.org/x/build/cmd/relui 17 18 FROM debian:bookworm 19 20 RUN apt-get update && apt-get install -y \ 21 --no-install-recommends \ 22 tini ca-certificates git 23 24 ARG PORT=8080 25 ENV PORT=${PORT} 26 EXPOSE ${PORT} 27 28 COPY --from=build /app/relui /app/relui 29 WORKDIR /app 30 ENTRYPOINT ["/usr/bin/tini", "--", "./relui"]