Skip to content

Commit be98f9a

Browse files
Create a Dockerfile to proxbox_api package and update its README.
1 parent 3fad421 commit be98f9a

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

proxbox_api/Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.12-slim-bookworm
3+
4+
# Set the working directory in the container
5+
WORKDIR /app
6+
7+
RUN pip install proxbox-api
8+
9+
# Make port 8800 available to the world outside this container
10+
EXPOSE 8800
11+
12+
# Define environment variable
13+
ENV PORT=8800
14+
15+
# Run app.py when the container launches
16+
CMD uvicorn proxbox_api.main:app --host 0.0.0.0 --port ${PORT}

proxbox_api/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Installing proxbox-api (Plugin backend made using FastAPI)
2+
3+
## Using docker
4+
5+
### Pull the docker image
6+
7+
```
8+
docker pull emersonfelipesp/proxbox-api:latest
9+
```
10+
11+
### Run the container
12+
```
13+
docker run -d -p 8800:8800 --name proxbox-api emersonfelipesp/proxbox-api:latest
14+
```

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ requires = [
2828
"poetry-core>=1.0.0",
2929
"requests",
3030
"pynetbox",
31+
"pynetbox-api",
3132
"proxmoxer",
3233
"fastapi[standard]>=0.115.6",
3334
"proxmoxer>=2.2.0",

0 commit comments

Comments
 (0)