Dockerfile stuff

This commit is contained in:
fredw committed 2021-03-10 11:19:18 -08:00
1 parent 1a0456eb43
commit df20bb7680
6 files changed
+20 -1

No files matched your search

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