Files
marketplace-bay-bot/docker/Dockerfile-MTbot
2025-05-16 02:44:33 +00:00

26 lines
498 B
Plaintext

FROM python:3.11-alpine
WORKDIR /app
# Install system dependencies
RUN apk add --no-cache --virtual .build-deps \
gcc \
musl-dev \
libffi-dev \
&& apk add --no-cache bash
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
COPY MTbot.py .
# Cleanup build dependencies
RUN apk del .build-deps
# Ensure proper permissions and unbuffered output
RUN chmod a+x MTbot.py
ENV PYTHONUNBUFFERED=1
CMD ["python3", "-u", "MTbot.py"]