text_captcha_breaker / Dockerfile
Steven C
Deploy to Lambda with Serverless framework
9245d19 unverified
raw
history blame contribute delete
436 Bytes
###########
# BUILDER #
###########
FROM public.ecr.aws/lambda/python:3.10 as builder
RUN pip3 install --upgrade pip
COPY requirements.txt .
RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"
#########
# FINAL #
#########
FROM public.ecr.aws/lambda/python:3.10
RUN pip3 install --upgrade pip
COPY --from=builder ${LAMBDA_TASK_ROOT} ${LAMBDA_TASK_ROOT}
COPY . ${LAMBDA_TASK_ROOT}
CMD [ "handler.lambda_handle" ]