mirror of
https://github.com/luxfi/price.git
synced 2026-10-30 15:21:24 +00:00
Workspace-wide sync. luxfi/node already shipped on 1.26.4 in v1.30.6 (commit 121aca1fa9); this is the cross-repo catch-up.
20 lines
308 B
Docker
20 lines
308 B
Docker
FROM golang:1.26.4-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY go.mod ./
|
|
COPY *.go ./
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o pricing .
|
|
|
|
FROM alpine:3.19
|
|
|
|
RUN apk --no-cache add ca-certificates tzdata
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/pricing .
|
|
|
|
ENV PORT=8080
|
|
EXPOSE 8080
|
|
|
|
CMD ["./pricing"]
|