Dockerfile stuff

This commit is contained in:
Fred Warren 2021-03-10 11:19:18 -08:00
parent 1a0456eb43
commit df20bb7680
6 changed files with 20 additions and 1 deletions

18
Dockerfile Normal file
View File

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

View File

@ -1,3 +1,3 @@
# Python # Python
Python-3.9 alpine linux image with added files used by my standard cronjob scripts Python-3.9 alpine linux image with added files used by my standard cronjob scripts

1
app/script.py Normal file
View File

@ -0,0 +1 @@
print('Hello World')

0
ssh/id_ed25519 Normal file
View File

0
ssh/id_ed25519.pub Normal file
View File

0
ssh/known_hosts Normal file
View File