master
Chris Nutter 2025-01-09 22:13:33 -08:00
parent 604d3cb8b2
commit 0f61261063
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.11 FROM python:3.11-slim
WORKDIR /app WORKDIR /app
COPY app.py . COPY app.py .
@ -6,11 +6,10 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Environment variables
ENV CALDAV_URL="" ENV CALDAV_URL=""
ENV PASSWORD="" ENV PASSWORD=""
ENV RA_API="" ENV RA_API=""
ENV RA_USER="" ENV RA_USER=""
ENV CALENDAR_NAME="" ENV CALENDAR_NAME=""
CMD ["python3", "./app.py", "$CALDAV_URL", "$CALENDAR_NAME", "$USERNAME", "$PASSWORD", "$RA_API", "$RA_USER"] CMD python3 ./app.py "${CALDAV_URL}" ${CALENDAR_NAME}" "${USERNAME}" "${PASSWORD}" "${RA_API}" "${RA_USER}"