update
This commit is contained in:
24
news_sender/Dockerfile
Normal file
24
news_sender/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy sender files
|
||||
COPY . .
|
||||
|
||||
# Copy backend files (needed for tracking and config)
|
||||
COPY ../backend/services /app/backend/services
|
||||
COPY ../backend/.env /app/.env
|
||||
|
||||
# Make the scheduler executable
|
||||
RUN chmod +x scheduled_sender.py
|
||||
|
||||
# Set timezone to Berlin
|
||||
ENV TZ=Europe/Berlin
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
# Run the scheduled sender
|
||||
CMD ["python", "-u", "scheduled_sender.py"]
|
||||
Reference in New Issue
Block a user