-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Overridable environment variables:
# ConnectionStrings__DefaultConnection — SQLite connection string (default: DataSource=travel.db)
# AgentQL__Provider — AI provider: OpenAI / Anthropic / Ollama
# AgentQL__ApiKey — API key for the chosen provider
# AgentQL__Endpoint — API endpoint URL
# AgentQL__ModelName — Model name (e.g. gpt-4o, claude-sonnet-4-20250514)
#
# Usage:
# docker build -t agentql-demo .
# docker run -p 8080:8080 -e AgentQL__ApiKey=sk-xxx -e AgentQL__ModelName=gpt-4o agentql-demo
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY *.sln ./
COPY Equibles.AgentQL/*.csproj Equibles.AgentQL/
COPY Equibles.AgentQL.EntityFrameworkCore/*.csproj Equibles.AgentQL.EntityFrameworkCore/
COPY Equibles.AgentQL.MicrosoftAI/*.csproj Equibles.AgentQL.MicrosoftAI/
COPY Equibles.AgentQL.Demo/*.csproj Equibles.AgentQL.Demo/
RUN dotnet restore
COPY . .
RUN dotnet publish Equibles.AgentQL.Demo -c Release -o /app/publish
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
EXPOSE 8080
ENV ASPNETCORE_URLS=http://+:8080
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "Equibles.AgentQL.Demo.dll"]