From 4190cbf96c043947be9d3221a324ecda8c1d8890 Mon Sep 17 00:00:00 2001 From: Scott Alfter Date: Tue, 20 Feb 2024 07:43:07 -0800 Subject: [PATCH] fixed Dockerfile --- Dockerfile | 8 ++++++++ build.sh | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 Dockerfile create mode 100755 build.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..674bcb6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM alpine +ENV IMAP_SERVER "$IMAP_SERVER" +ENV IMAP_USER "$IMAP_USER" +ENV IMAP_PASSWD "$IMAP_PASSWD" +RUN apk add --no-cache python3 py3-dateutil py3-imap-tools +COPY --chmod=755 promo_cleanup.py /usr/local/bin/ +CMD [ "/usr/local/bin/promo_cleanup.py" ] + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..1405383 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +docker build --no-cache -t salfter/promo-cleanup . +docker push salfter/promo-cleanup