mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
docker
This commit is contained in:
parent
c3f45dae6b
commit
8aebea3b7a
2 changed files with 23 additions and 1 deletions
22
docker/DOCKERFILE
Normal file
22
docker/DOCKERFILE
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
FROM python:3.11-slim
|
||||
|
||||
# Set timezone
|
||||
ENV TZ=America/Los_Angeles
|
||||
RUN apt-get update && apt-get install -y tzdata
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy source code
|
||||
COPY src/c2cscrape.py .
|
||||
|
||||
# Set hardcoded download path
|
||||
ENV DOWNLOAD_DIR=/downloads
|
||||
|
||||
# Start the scraper
|
||||
CMD ["python", "-u", "c2cscrape.py"]
|
||||
|
||||
|
|
@ -5,7 +5,7 @@ services:
|
|||
image: death916/c2cscrape:latest
|
||||
volumes:
|
||||
- /mnt/media/media/books/audio/podcasts/C2C:/downloads
|
||||
- /mnt/media/docker/volumes/c2cscrape
|
||||
- /mnt/media/docker/volumes/c2cscrape:/app/data
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=America/Los_Angeles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue