Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .gitlab-ci.yml

This file was deleted.

34 changes: 30 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,38 @@
FROM python:3.12-alpine
FROM python:3.10-slim

WORKDIR /app

RUN pip install gevent==24.2.1 gevent-websocket==0.10.1
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libc-dev \
libffi-dev \
net-tools \
iputils-ping \
iproute2 \
&& rm -rf /var/lib/apt/lists/*

# Install Python dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Optional: Install netifaces for better network interface detection
RUN pip install --no-cache-dir netifaces

# Create necessary directories
RUN mkdir -p /app/uploads /app/logs /app/config /app/backups /app/data

# Copy application code
COPY . .

ENTRYPOINT ["python", "main.py"]
# Set environment variables
ENV PORT=54780
ENV HOST=0.0.0.0
ENV DEBUG=false
ENV DISCOVERY_TIMEOUT=3

# Expose the application port
EXPOSE 54780

# Run the application
ENTRYPOINT ["python", "main.py", "run"]
Loading