mirror of
https://github.com/luxfi/exchange-proxy.git
synced 2026-10-30 16:56:50 +00:00
The module declares go 1.27.1 and the build image follows. go fix had nothing to change here; omitzero is not applied, since it changes what the JSON says. Co-authored-by: Hanzo Dev <[email protected]>
15 lines
336 B
Docker
15 lines
336 B
Docker
FROM golang:1.27.1-alpine AS build
|
|
ENV GOTOOLCHAIN=auto
|
|
WORKDIR /app
|
|
COPY go.mod ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -o exchange-proxy .
|
|
|
|
FROM alpine:3.20
|
|
RUN apk add --no-cache ca-certificates
|
|
COPY --from=build /app/exchange-proxy /usr/local/bin/
|
|
EXPOSE 8088
|
|
ENTRYPOINT ["exchange-proxy"]
|
|
CMD ["-addr", ":8088"]
|