This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:bullseye-slim | |
ENV NODE_VERSION=20 \ | |
N8N_VERSION=1.102.0 \ | |
PYTHON_PACKAGES_PATH=/home/n8n/.local | |
# 1. Install base dependencies | |
RUN apt-get update && apt-get install -y \ | |
curl gnupg git python3 python3-pip python3-venv build-essential bash \ | |
&& apt-get clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM public.ecr.aws/lambda/python:3.8 | |
COPY ./app ./app | |
COPY ./requirements.txt ./requirements.txt | |
RUN pip install -r ./requirements.txt | |
CMD ["app.app.handler"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, HTTPException | |
from mangum import Mangum | |
... | |
############################################################################### | |
# Application object # | |
############################################################################### | |
app = FastAPI() |