mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 10:16:15 +00:00
22 lines
458 B
Docker
22 lines
458 B
Docker
FROM golang:alpine AS builder
|
|
|
|
RUN apk add --no-cache --update git build-base
|
|
ENV CGO_ENABLED=1
|
|
WORKDIR /app
|
|
|
|
COPY ./src .
|
|
RUN go mod tidy \
|
|
&& go build -ldflags "-s -w" \
|
|
-o epusdt .
|
|
|
|
FROM alpine:latest AS runner
|
|
ENV TZ=Asia/Shanghai
|
|
RUN apk --no-cache add ca-certificates tzdata
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/static /app/static
|
|
COPY --from=builder /app/static /static
|
|
COPY --from=builder /app/epusdt .
|
|
|
|
ENTRYPOINT ["./epusdt" ,"http","start"]
|