testing start script changes
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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
2
scripts/autorun.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
copy.sh && start_bot.sh
|
||||||
3
scripts/start_bot.sh
Normal file
3
scripts/start_bot.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
python3 app/flairtimercomment.py
|
||||||
Reference in New Issue
Block a user