Skip to content

Instantly share code, notes, and snippets.

@orcaman
Created January 5, 2021 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orcaman/886c641237e9a0bf86fce80d60c17915 to your computer and use it in GitHub Desktop.
Save orcaman/886c641237e9a0bf86fce80d60c17915 to your computer and use it in GitHub Desktop.
Dockerfile
FROM public.ecr.aws/lambda/python:3.8
## install JRE - needed for PDF parser
RUN yum install -y \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel
ENV JAVA_HOME /etc/alternatives/jre
## copy app
WORKDIR ${LAMBDA_TASK_ROOT}
COPY . ./
## install deps
RUN pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment