ofx-processor/Dockerfile

16 lines
680 B
Text
Raw Permalink Normal View History

2023-06-14 08:18:42 +02:00
FROM debian:bookworm AS downloader
2021-11-20 16:59:12 +01:00
WORKDIR /app
RUN apt-get update && apt-get install -y wget
2024-10-14 20:19:38 +02:00
ARG GECKODRIVER_VERSION="v0.35.0"
2022-10-10 22:38:30 +02:00
ARG GECKODRIVER_FILENAME="geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz"
RUN wget -q https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/$GECKODRIVER_FILENAME \
&& tar xvf $GECKODRIVER_FILENAME \
&& rm $GECKODRIVER_FILENAME
2021-11-20 16:59:12 +01:00
2024-11-29 20:24:53 +01:00
FROM python:3.13-slim-bookworm AS final
2021-11-20 16:59:12 +01:00
RUN apt-get update && apt-get install -y firefox-esr
COPY --from=downloader /app/geckodriver /usr/local/bin/geckodriver
ARG OFX_VERSION
2023-06-15 22:49:13 +02:00
RUN pip --disable-pip-version-check install --quiet ofx-processor==$OFX_VERSION
2021-11-20 16:59:12 +01:00
CMD ["ynab", "lcl", "--download"]