From 8b7e1892ed756ff96098b53a3206f8e56ef8d03d Mon Sep 17 00:00:00 2001 From: saidhfm <40364562+saidhfm@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:19:34 +0530 Subject: [PATCH] Update Dockerfile python version issue fixed --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 25fd522cd..c9986408c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,22 @@ -FROM python:3.7-slim as cloudmapper +FROM python:3.8-slim AS cloudmapper LABEL maintainer="https://github.com/0xdabbad00/" LABEL Project="https://github.com/duo-labs/cloudmapper" EXPOSE 8000 WORKDIR /opt/cloudmapper -ENV AWS_DEFAULT_REGION=us-east-1 +ENV AWS_DEFAULT_REGION=us-east-1 RUN apt-get update -y RUN apt-get install -y build-essential autoconf automake libtool python3-tk jq awscli RUN apt-get install -y bash +# Upgrade pip to the latest version +RUN pip install --upgrade pip + COPY . /opt/cloudmapper + +# Specify a compatible numpy version if necessary RUN pip install -r requirements.txt RUN bash