Skip to content

Commit

Permalink
chore: updated docker file to use the python package
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Oct 4, 2023
1 parent 68b79ef commit c02f946
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ RUN chmod +x *.sh && \

# Stage 3 - final runtime image
# Grab a fresh copy of the Python image
FROM public.ecr.aws/lambda/python:3.10
FROM public.ecr.aws/lambda/python:3.11

ARG MODEL

RUN mkdir -p ${MODEL} && mkdir -p open/text/embeddings
RUN mkdir -p ${MODEL}
COPY --from=build-image ${MODEL} ${MODEL}
COPY open/text/embeddings ./open/text/embeddings
COPY server-requirements.txt ./
RUN pip install --no-cache-dir -r server-requirements.txt
RUN pip install --upgrade pip setuptools && \
pip install --no-cache-dir open-text-embeddings[server] mangum

CMD [ "open.text.embeddings.server.aws.handler" ]

0 comments on commit c02f946

Please sign in to comment.