getting ready to public
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user