mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-02-19 19:26:17 +00:00
Add cluster worker implementation and configuration files
This commit is contained in:
33
containers/cluster_node/Dockerfile-cluster_node
Normal file
33
containers/cluster_node/Dockerfile-cluster_node
Normal file
@@ -0,0 +1,33 @@
|
||||
# Single stage build for Cluster Node
|
||||
FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
|
||||
# Install necessary runtime packages
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
wireguard \
|
||||
iptables \
|
||||
iproute2 \
|
||||
net-tools \
|
||||
inetutils-ping \
|
||||
inetutils-traceroute \
|
||||
procps \
|
||||
curl \
|
||||
nano \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements and install Python packages
|
||||
# Using the specific requirements.txt for this container
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the application code
|
||||
COPY . /app/
|
||||
|
||||
# Set execution permissions on scripts
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
ARG SERVER_ADDRESS
|
||||
ARG DEBUG_MODE
|
||||
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
CMD ["python", "-u", "/app/cluster_worker.py"]
|
||||
Reference in New Issue
Block a user