File tree 3 files changed +31
-0
lines changed
3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
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}
Original file line number Diff line number Diff line change
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
+ ```
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ requires = [
28
28
" poetry-core>=1.0.0" ,
29
29
" requests" ,
30
30
" pynetbox" ,
31
+ " pynetbox-api" ,
31
32
" proxmoxer" ,
32
33
" fastapi[standard]>=0.115.6" ,
33
34
" proxmoxer>=2.2.0" ,
You can’t perform that action at this time.
0 commit comments