- move Python sources into app package and switch services to module entrypoints - relocate Dockerfiles under docker/, add buildx publish script, override compose for local builds - configure images to pull from gitea.04080616.xyz/yiekheng with env-driven tags and limits - harden installs and transfer worker logging/concurrency for cleaner container output
18 lines
309 B
Docker
18 lines
309 B
Docker
FROM python:3.9-slim
|
|
|
|
ENV PIP_DEFAULT_TIMEOUT=120
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir --retries 5 -r requirements.txt
|
|
|
|
# Copy application files
|
|
COPY app ./app
|
|
|
|
# Set environment variables
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# Run the telegram bot
|
|
CMD ["python", "-m", "app.cm_telegram"]
|