Files
OpenVPN-Monitoring-Simple/APP_PROFILER/Dockerfile
2026-02-06 21:14:52 +03:00

22 lines
445 B
Docker

FROM python:3.12-alpine
# Install OpenVPN, OpenRC and other system deps
RUN apk add --no-cache openvpn openrc iproute2 bash iptables
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code and entrypoint
COPY . .
RUN chmod +x entrypoint.sh
# Expose API port
EXPOSE 8000
# Expose OpenVPN port (default 1194 UDP)
EXPOSE 1194/udp
ENTRYPOINT ["./entrypoint.sh"]