using arm64 base image

This commit is contained in:
Khalim Conn-Kowlessar 2023-08-24 15:52:56 +01:00
parent 363a6887a9
commit 809a4d6a6c

View file

@ -1,5 +1,5 @@
# Pull base image # Pull base image
FROM python:3.10.12-slim-buster as build-image FROM arm64v8/python:3.10.12-slim-bullseye as build-image
# Set environment variables # Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONDONTWRITEBYTECODE 1
@ -24,7 +24,7 @@ RUN pip install -r backend/requirements/base.txt && rm -rf /root/.cache
RUN pip install awslambdaric RUN pip install awslambdaric
# Second stage: "runtime-image" # Second stage: "runtime-image"
FROM python:3.10.12-slim-buster FROM arm64v8/python:3.10.12-slim-bullseye
# Set work directory to the root of your project # Set work directory to the root of your project
WORKDIR /var/task/Model WORKDIR /var/task/Model