testing start script changes

This commit is contained in:
2026-02-22 20:56:31 +00:00
parent 6f9c758868
commit 275b666560
3 changed files with 11 additions and 4 deletions

View File

@@ -1,17 +1,19 @@
FROM python:3.14-slim FROM python:3.14-slim
WORKDIR /app
# Copy application files # Copy application files
WORKDIR /config
COPY scripts /.
COPY config.py . COPY config.py .
COPY flairtimercomment.py . COPY flairtimercomment.py .
# Create App directory
RUN mkdir /app
# Install dependencies # Install dependencies
RUN pip install --no-cache-dir praw RUN pip install --no-cache-dir praw
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
# Run the script # Run the script
CMD ["python", "flairtimercomment.py"] CMD ["sh", "/config/scripts/autorun.sh"]

2
scripts/autorun.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
copy.sh && start_bot.sh

3
scripts/start_bot.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
python3 app/flairtimercomment.py