forked from PegaProx/project-pegaprox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM alpine:3.23.3
LABEL org.label-schema.name="PegaProx"
LABEL org.label-schema.description="PegaProx - A powerful datacenter management for Proxmox VE clusters."
LABEL org.label-schema.vendor="PegaProx"
LABEL org.label-schema.url="https://pegaprox.com"
LABEL org.label-schema.vcs-url="https://github.com/PegaProx/project-pegaprox"
LABEL maintainer="support@pegaprox.com"
ENV PEGAPROX_CONFIG_DIR=/app/pegaprox/config
RUN apk add --no-cache python3=~3.12 py3-pip \
&& addgroup -S pegaprox \
&& adduser -S -G pegaprox -h /home/pegaprox pegaprox \
&& mkdir -p /app/conf /opt/venv \
&& chown -R pegaprox:pegaprox /app /home/pegaprox /opt/venv
WORKDIR /app
COPY --chown=pegaprox:pegaprox requirements.txt /app/requirements.txt
USER pegaprox
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:${PATH}"
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY --chown=pegaprox:pegaprox . /app/pegaprox
RUN ls -al /app/pegaprox
VOLUME ["/app/pegaprox/config"]
EXPOSE 5000
ENTRYPOINT ["/opt/venv/bin/python", "/app/pegaprox/pegaprox_multi_cluster.py"]