From df20bb76805ba2bb8fe95e5de9c17452ea90045e Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Wed, 10 Mar 2021 11:19:18 -0800 Subject: [PATCH] Dockerfile stuff --- Dockerfile | 18 ++++++++++++++++++ README.md | 2 +- app/script.py | 1 + ssh/id_ed25519 | 0 ssh/id_ed25519.pub | 0 ssh/known_hosts | 0 6 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 app/script.py create mode 100644 ssh/id_ed25519 create mode 100644 ssh/id_ed25519.pub create mode 100644 ssh/known_hosts diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..444b18d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.9-alpine + +RUN apk add --no-cache mariadb-connector-c-dev git jpeg openssh-client;\ + apk add --no-cache --virtual .build-deps \ + build-base mariadb-connector-c-dev mariadb-dev gcc g++ jpeg-dev zlib-dev;\ + pip install --no-cache-dir mysqlclient Pillow titlecase ;\ + apk del .build-deps + +RUN pip install --no-cache-dir bgtunnel Click mailer openpyxl python-dotenv \ + PyPDF2 smartsheet-python-sdk xlrd xlutils xlwt dateparser \ + datedelta pudb \ + git+https://github.com/northriverboats/mysql-tunnel \ + git+https://github.com/northriverboats/emailer + +COPY --chown=root:root ./ssh /root/.ssh +COPY ./app /app +WORKDIR /app +CMD ["python", "script.py"] diff --git a/README.md b/README.md index 62ed513..5f45379 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Python -Python-3.9 alpine linux image with added files used by my standard cronjob scripts \ No newline at end of file +Python-3.9 alpine linux image with added files used by my standard cronjob scripts diff --git a/app/script.py b/app/script.py new file mode 100644 index 0000000..df1dc68 --- /dev/null +++ b/app/script.py @@ -0,0 +1 @@ +print('Hello World') diff --git a/ssh/id_ed25519 b/ssh/id_ed25519 new file mode 100644 index 0000000..e69de29 diff --git a/ssh/id_ed25519.pub b/ssh/id_ed25519.pub new file mode 100644 index 0000000..e69de29 diff --git a/ssh/known_hosts b/ssh/known_hosts new file mode 100644 index 0000000..e69de29