Docker setup.

This commit is contained in:
retoor 2025-09-18 19:34:59 +02:00
parent 602d4efd0c
commit bcd25503c5
3 changed files with 39 additions and 0 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0
RUN mkdir /app
WORKDIR /app

22
README.md Normal file
View File

@ -0,0 +1,22 @@
# AISApp Project
## Environment Configuration
Before running the project, you need to configure the environment variables in a `.env` file. The required environment variables are:
- `OPENROUTER_API_KEY`
## Running the Project
The recommended way to run the project is using Docker Compose:
```bash
docker compose up
```
This will start the application with all necessary services.
---
This README provides the basic steps to configure and run the AISApp project using Docker Compose and environment variables.

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3.8'
services:
aisapp2:
build: .
ports:
- "5000:80"
working_dir: /app
command: ["dotnet", "run", "--project", "AISApp", "--urls", "http://0.0.0.0:80"]
volumes:
- .:/app
environment:
- ASPNETCORE_ENVIRONMENT=Development
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}