Moved combineImg to own module; created AWS dockerfile; added combination_method config
This commit is contained in:
33
combineImg/Dockerfile
Normal file
33
combineImg/Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM public.ecr.aws/lambda/python:3.8
|
||||
RUN yum -y install git && yum clean all
|
||||
RUN yum -y install tar gzip zlib freetype-devel \
|
||||
gcc \
|
||||
ghostscript \
|
||||
lcms2-devel \
|
||||
libffi-devel \
|
||||
libimagequant-devel \
|
||||
libjpeg-devel \
|
||||
libraqm-devel \
|
||||
libtiff-devel \
|
||||
libwebp-devel \
|
||||
make \
|
||||
openjpeg2-devel \
|
||||
rh-python36 \
|
||||
rh-python36-python-virtualenv \
|
||||
sudo \
|
||||
tcl-devel \
|
||||
tk-devel \
|
||||
tkinter \
|
||||
which \
|
||||
xorg-x11-server-Xvfb \
|
||||
zlib-devel \
|
||||
&& yum clean all
|
||||
RUN pip install -U --force-reinstall pillow-simd
|
||||
RUN pip install requests
|
||||
|
||||
|
||||
# Copy function code
|
||||
COPY __init__.py ${LAMBDA_TASK_ROOT}/app.py
|
||||
|
||||
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
|
||||
CMD [ "app.lambda_handler" ]
|
Reference in New Issue
Block a user