Update Dockerfile

master
Chris Nutter 2025-01-10 12:05:56 -08:00
parent fc3ac0bf68
commit 0c7f524081
1 changed files with 7 additions and 8 deletions

View File

@ -6,12 +6,11 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
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
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
ENTRYPOINT ["sh", "-c"]
CMD python3 ./app.py "$CALDAV_URL" "$CALENDAR_NAME" "$USERNAME" "$PASSWORD" "$RA_API" "$RA_USER"
CMD ["sh", "-c", "python3 ./app.py \"${CALDAV_URL}\" \"${CALENDAR_NAME}\" \"${USERNAME}\" \"${PASSWORD}\" \"${RA_API}\" \"${RA_USER}\""]