| ADD alpine-minirootfs-3.23.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL maintainer=gyptazy@gyptazy.com |
| LABEL org.label-schema.name=ProxLB |
| LABEL org.label-schema.description=ProxLB - An advanced load balancer for Proxmox clusters. |
| LABEL org.label-schema.vendor=gyptazy |
| LABEL org.label-schema.url=https://proxlb.de |
| LABEL org.label-schema.vcs-url=https://github.com/gyptazy/ProxLB |
| RUN /bin/sh -c apk add --no-cache python3 py3-pip && addgroup -S plb && adduser -S -G plb -h /home/plb plb && mkdir -p /app/conf /opt/venv && chown -R plb:plb /app /home/plb /opt/venv # buildkit |
| WORKDIR /app |
| COPY --chown=plb:plb requirements.txt /app/requirements.txt # buildkit |
| USER plb |
| RUN /bin/sh -c python3 -m venv /opt/venv # buildkit |
| ENV PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c pip install --no-cache-dir -r /app/requirements.txt # buildkit |
| COPY --chown=plb:plb proxlb /app/proxlb # buildkit |
| RUN /bin/sh -c touch /app/conf/proxlb.yaml # buildkit |
| ENTRYPOINT ["/opt/venv/bin/python" "/app/proxlb/main.py"] |