mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
27 lines
No EOL
834 B
Docker
27 lines
No EOL
834 B
Docker
FROM mcr.microsoft.com/playwright/python:v1.58.0-jammy
|
|
|
|
# Install AWS Lambda RIE
|
|
ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/local/bin/aws-lambda-rie
|
|
RUN chmod +x /usr/local/bin/aws-lambda-rie
|
|
|
|
# Install Lambda runtime client
|
|
RUN pip install awslambdaric playwright==1.58.0 requests msal openpyxl
|
|
|
|
# Set working directory (Lambda task root)
|
|
WORKDIR /var/task
|
|
|
|
COPY .env backend/.env
|
|
|
|
COPY utils/ utils/
|
|
COPY backend/pashub_fetcher/ backend/pashub_fetcher/
|
|
|
|
|
|
# Lambda entrypoint
|
|
ENTRYPOINT ["/usr/local/bin/aws-lambda-rie", "python", "-m", "awslambdaric"]
|
|
|
|
# -----------------------------
|
|
# Lambda handler
|
|
# -----------------------------
|
|
# CMD ["backend/pashub_fetcher/handler/handler.handler"]
|
|
# For local running
|
|
CMD ["backend.pashub_fetcher.handler.handler.handler"] |