Add docker/Dockerfile-GTbot.py
This commit is contained in:
26
docker/Dockerfile-GTbot.py
Normal file
26
docker/Dockerfile-GTbot.py
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
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 GTbot.py .
|
||||||
|
|
||||||
|
# Cleanup build dependencies
|
||||||
|
RUN apk del .build-deps
|
||||||
|
|
||||||
|
# Ensure proper permissions and unbuffered output
|
||||||
|
RUN chmod a+x GTbot.py
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
CMD ["python3", "-u", "GTbot.py"]
|
||||||
Reference in New Issue
Block a user