2024-03-10 02:55:28 +00:00
|
|
|
FROM golang:1-alpine as builder
|
2024-03-10 02:19:50 +00:00
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN go build -o app
|
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY --from=builder /build/app .
|
|
|
|
|
2024-08-16 00:47:07 +00:00
|
|
|
# Do not forget "/v1" in the end
|
|
|
|
ENV OPENAI_API_BASE_URL="" \
|
|
|
|
OPENAI_API_TOKEN="" \
|
|
|
|
TELEGRAM_TOKEN="" \
|
|
|
|
MODEL_TEXT_REQUEST="llama3.1:8b-instruct-q6_K" \
|
|
|
|
MODEL_SUMMARIZE_REQUEST="llama3.1:8b-instruct-q6_K"
|
|
|
|
|
2024-03-10 02:19:50 +00:00
|
|
|
CMD ["/app/app"]
|