RAJSONToCal/Dockerfile

16 lines
412 B
Docker
Raw Normal View History

2025-01-09 22:13:33 -08:00
FROM python:3.11-slim
2025-01-09 21:53:30 -08:00
WORKDIR /app
COPY app.py .
COPY requirements.txt .
2025-01-09 22:07:26 -08:00
RUN pip install --no-cache-dir -r requirements.txt
2025-01-09 21:53:30 -08:00
2025-01-10 12:05:56 -08:00
ENV CALDAV_URL=$CALDAV_URL
ENV CALENDAR_NAME=$CALENDAR_NAME
ENV USERNAME=$USERNAME
ENV PASSWORD=$PASSWORD
ENV RA_API=$RA_API
ENV RA_USER=$RA_USER
2025-01-10 11:51:53 -08:00
2025-01-10 12:05:56 -08:00
CMD ["sh", "-c", "python3 ./app.py \"${CALDAV_URL}\" \"${CALENDAR_NAME}\" \"${USERNAME}\" \"${PASSWORD}\" \"${RA_API}\" \"${RA_USER}\""]