mirror of
https://github.com/Murasame-Dev/McStatus-API.git
synced 2025-12-15 12:48:02 +00:00
commit
de2a39b8aa
2 changed files with 19 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM python:3.9
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN pip install gunicorn && pip install -r requirements.txt
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
||||
10
README.md
10
README.md
|
|
@ -37,6 +37,16 @@ pdm run app.py
|
|||
pip install -r requirements.txt
|
||||
python app.py
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details open>
|
||||
<summary>docker</summary>
|
||||
```bash
|
||||
docker build -t mcstatus-api .
|
||||
docker run --name mcstatus-api -p 8000:8000 -d mcstatus-api
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## 🖊下一步计划
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue