From a1731290f03051679abaef1c091cfd30596ac12c Mon Sep 17 00:00:00 2001 From: saulteafarmer Date: Wed, 14 May 2025 15:01:18 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac6e6d2..2fc2c4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,15 @@ -# Use official Python slim image FROM python:3.10-slim -# Set working directory WORKDIR /app -# Install system dependencies RUN apt-get update \ - && apt-get install -y gcc libpq-dev \ - && rm -rf /var/lib/apt/lists/* + && apt-get install -y gcc libpq-dev --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* -# Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -# Copy application code COPY . . -# Expose nothing (bot connects outbound) - -# Default command -CMD ["python", "discord_lnbits_bot.py"] \ No newline at end of file +EXPOSE 3000 +CMD ["gunicorn", "-b", "0.0.0.0:3000", "app:app"]