Update Dockerfile
This commit is contained in:
parent
cc606d4aa0
commit
a1731290f0
13
Dockerfile
13
Dockerfile
@ -1,22 +1,15 @@
|
|||||||
# Use official Python slim image
|
|
||||||
FROM python:3.10-slim
|
FROM python:3.10-slim
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install system dependencies
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y gcc libpq-dev \
|
&& apt-get install -y gcc libpq-dev --no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy requirements and install
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Copy application code
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose nothing (bot connects outbound)
|
EXPOSE 3000
|
||||||
|
CMD ["gunicorn", "-b", "0.0.0.0:3000", "app:app"]
|
||||||
# Default command
|
|
||||||
CMD ["python", "discord_lnbits_bot.py"]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user