fabric-samples/token-sdk/Dockerfile
Mark S. Lewis 5e91d365d4 Update to Go 1.23
Go 1.24 was released on 2025-02-11. At this point Go 1.22 become an
unsupported Go runtime.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
2025-02-12 08:34:17 -05:00

19 lines
357 B
Docker

#build stage
FROM golang:1.23-bookworm AS builder
WORKDIR /go/src/app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go build -o /go/bin/app
#final stage
FROM golang:1.23-bookworm
COPY --from=builder /go/bin/app /app
ENTRYPOINT /app
LABEL Name=tokens Version=0.1.0
ENV PORT=9000
ENV CONF_DIR=/conf
EXPOSE 9000
EXPOSE 9001