bingo/Dockerfile
Seraphim R. Pardee af4d473ac0
Some checks failed
release / docker-release-latest (push) Failing after 1s
test / test (push) Successful in 3m33s
release / go-release-tag (push) Failing after 15m11s
build / build (push) Has been cancelled
release / docker-release-tag (push) Has been cancelled
Try out a release flow and add cross-compiling builds.
2024-09-20 23:19:31 -04:00

15 lines
204 B
Docker

FROM golang:1.23
ARG TARGETOS
ARG TARGETARCH
WORKDIR /app
COPY . ./
RUN go mod download
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /bingo
EXPOSE 3005
CMD [ "/bingo", "run" ]