bingo/Dockerfile

15 lines
204 B
Docker
Raw Normal View History

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" ]