add pg conf

This commit is contained in:
noreply
2024-04-10 11:00:50 +08:00
parent 71f0a9cdc3
commit aae8308973
17 changed files with 419 additions and 113 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM golang:alpine as builder
# ENV CGO_ENABLED=1
WORKDIR /app
COPY ./src .
# RUN apk add --no-cache --update git build-base
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 .
EXPOSE 8000
ENTRYPOINT ["./epusdt" ,"http","start"]