add sqlite

This commit is contained in:
noreply
2024-07-29 10:07:22 +08:00
parent 2cb9ed4393
commit 3d02b41dba
7 changed files with 67 additions and 6 deletions
+22
View File
@@ -0,0 +1,22 @@
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 .
EXPOSE 8000
ENTRYPOINT ["./epusdt" ,"http","start"]