mirror of
https://github.com/cyclotruc/gitingest.git
synced 2026-04-28 11:09:30 +00:00
added docker support (#9)
This commit is contained in:
parent
64c74682b6
commit
518cce5d4b
2 changed files with 24 additions and 0 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM python:3.12
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY src/ ./
|
||||
COPY requirements.txt ./
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
CMD ["uvicorn", "main:app", "--reload"]
|
||||
14
README.md
14
README.md
|
|
@ -41,6 +41,20 @@ cd src
|
|||
uvicorn main:app --reload
|
||||
```
|
||||
|
||||
|
||||
The application will be available at `http://localhost:8000`
|
||||
|
||||
### Docker
|
||||
|
||||
1. Build the image:
|
||||
```
|
||||
docker build -t gitingest .
|
||||
```
|
||||
|
||||
2. Run the container:
|
||||
```
|
||||
docker run -d --name gitingest -p 8000:8000 gitingest
|
||||
```
|
||||
The application will be available at `http://localhost:8000`
|
||||
|
||||
## ✔️ Contributions are welcome!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue