Python/Dockerfile

19 lines
733 B
Docker

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