forked from felixandersen/kivra-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 743 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (25 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.13-slim
WORKDIR /app
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates weasyprint && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copy the necessary files
COPY kivra_sync.py /app/
COPY __version__.py /app/
COPY VERSION /app/
COPY kivra/ /app/kivra/
COPY storage/ /app/storage/
COPY utils/ /app/utils/
COPY interaction/ /app/interaction/
# Make scripts executable
RUN chmod +x /app/kivra_sync.py
# Create directories
RUN mkdir -p /app/temp /data
ENV PYTHONUNBUFFERED=1
# Set entrypoint
ENTRYPOINT ["python", "kivra_sync.py"]
# Default command (can be overridden)
CMD ["--help"]