From d7a2c102714afa7911db1ed261782f7f4964a565 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 4 Sep 2022 21:31:38 +0200 Subject: [PATCH] Fix dockerfile --- Dockerfile | 2 +- tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a01c6b..56b324c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app RUN apt-get update && apt-get install -y wget ARG GECKODRIVER_VERSION="v0.30.0" ARG GECKODRIVER_FILENAME="geckodriver-$GECKODRIVER_VERSION-linux64" -RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v0.30.0/$GECKODRIVER_FILENAME.tar.gz && tar xvf $GECKODRIVER_FILENAME.tar.gz && rm $GECKODRIVER_FILENAME.tar.gz +RUN wget -q https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/$GECKODRIVER_FILENAME.tar.gz && tar xvf $GECKODRIVER_FILENAME.tar.gz && rm $GECKODRIVER_FILENAME.tar.gz FROM python:3.10-slim-bullseye as final RUN apt-get update && apt-get install -y firefox-esr diff --git a/tasks.py b/tasks.py index da990a1..c61149e 100644 --- a/tasks.py +++ b/tasks.py @@ -44,7 +44,7 @@ def publish_docker(ctx): with ctx.cd(BASE_DIR): docker_image = "crocmagnon/ynab" ctx.run( - f"docker build --platform linux/amd64 --build-arg OFX_VERSION=$(poetry version -s) -t {docker_image} .", + f"docker build --pull --platform linux/amd64 --build-arg OFX_VERSION=$(poetry version -s) -t {docker_image} .", pty=True, echo=True, )