fixed Dockerfile

This commit is contained in:
2024-02-20 07:43:07 -08:00
parent 2b151b072f
commit 4190cbf96c
2 changed files with 11 additions and 0 deletions

8
Dockerfile Normal file
View File

@@ -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" ]

3
build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
docker build --no-cache -t salfter/promo-cleanup .
docker push salfter/promo-cleanup