Docker setup.
This commit is contained in:
parent
602d4efd0c
commit
bcd25503c5
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
22
README.md
Normal file
22
README.md
Normal 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
13
docker-compose.yml
Normal 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}
|
||||
Loading…
Reference in New Issue
Block a user