mirror of
https://github.com/andrey271192/kaskad_web_vpn.git
synced 2026-09-21 12:01:59 +00:00
System/services/NAT CRUD, iptables chain KASKAD_WEB, host-network Docker install, docker CLI in image for status row. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
585 B
Docker
26 lines
585 B
Docker
FROM docker:27-cli AS dockercli
|
|
|
|
FROM python:3.12-slim-bookworm
|
|
|
|
COPY --from=dockercli /usr/local/bin/docker /usr/local/bin/docker
|
|
|
|
WORKDIR /app
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends iptables iproute2 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY app.py kaskad_store.py system_info.py .
|
|
COPY templates ./templates
|
|
COPY static ./static
|
|
|
|
ENV PORT=8088
|
|
EXPOSE 8088
|
|
|
|
CMD ["sh", "-c", "exec gunicorn -w 2 -b 0.0.0.0:${PORT} app:app"]
|