getting ready to public

This commit is contained in:
2025-04-01 10:52:59 -04:00
parent 1a51ded5fc
commit eb5d9bc3f9
9 changed files with 116 additions and 5 deletions

View File

@@ -1,13 +1,23 @@
FROM python:3.9-slim
# Set working directory
WORKDIR /app
COPY requirements.txt .
# Create logs directory
RUN mkdir -p /app/logs
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN apt-get update && apt-get install -y iputils-ping telnet # Add these lines
# Optional tools (useful for debugging)
RUN apt-get update && apt-get install -y iputils-ping telnet && apt-get clean
# Copy application code
COPY . .
CMD ["python", "app.py"]
# Expose port (optional, for documentation)
EXPOSE 8080
# Default command to run app with Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "wsgi:app"]