Skip to content

Commit

Permalink
use lambda container images
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Oct 11, 2024
1 parent a8ff4f8 commit 9e5eecb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
FROM python:3.11-slim-bullseye

RUN apt-get update && apt-get -y upgrade \
&& apt-get install gcc -y \
&& pip install --upgrade pip
FROM public.ecr.aws/lambda/python:3.11

RUN pip install 'poetry==1.8.3'
COPY pyproject.toml poetry.lock ./
COPY pyproject.toml poetry.lock ${LAMBDA_TASK_ROOT}

# Needed to save time and avoid build issues in Lambda
RUN poetry config virtualenvs.create false --local
# Install the dependencies first, so that we can cache them.
RUN poetry install --no-dev

# Copy everything. (Note: If needed, we can use .dockerignore to limit what's copied.)
COPY . .
COPY . ${LAMBDA_TASK_ROOT}

# Install again, now that we've copied the jinjat package files. Otherwise,
# Jinjat itself won't be installed.
Expand Down

0 comments on commit 9e5eecb

Please sign in to comment.