diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..edf9eab --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM mcr.microsoft.com/dotnet/sdk:9.0 +RUN mkdir /app +WORKDIR /app + diff --git a/README.md b/README.md new file mode 100644 index 0000000..450bac9 --- /dev/null +++ b/README.md @@ -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. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1e776b9 --- /dev/null +++ b/docker-compose.yml @@ -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}