-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (14 loc) · 619 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM --platform=linux/arm64 python:3.10-slim
WORKDIR /app
RUN apt update
RUN apt install -y curl
ENV POETRY_HOME="/root/.poetry"
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="$PATH:$POETRY_HOME/bin:/usr/local/bin"
RUN poetry config virtualenvs.create false
RUN curl -Lo /usr/local/bin/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/download/v1.8/aws-lambda-rie-arm64 \
&& chmod 755 /usr/local/bin/aws-lambda-rie
COPY poetry.lock pyproject.toml ./
RUN poetry install --no-root
COPY . .
ENTRYPOINT ["/usr/local/bin/python", "-m", "awslambdaric"]