From 0da5fbe460e38bad7d445314047c3183470fe430 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Fri, 3 Nov 2023 16:49:56 +0800 Subject: [PATCH] Change apine to slim contianer for TM --- images/tasking-manager-api/Dockerfile | 31 +++++++++++++-------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/images/tasking-manager-api/Dockerfile b/images/tasking-manager-api/Dockerfile index 2f33d076..4db2f125 100644 --- a/images/tasking-manager-api/Dockerfile +++ b/images/tasking-manager-api/Dockerfile @@ -1,7 +1,7 @@ -FROM python:3.7-alpine +FROM python:3.7-slim -RUN apk update && \ - apk add git +RUN apt update && \ + apt install -y git ENV workdir /usr/src/app @@ -11,21 +11,20 @@ RUN cd $workdir && git checkout -f f0df07174f4014365220af09187b5f941f9770b0 WORKDIR $workdir # Setup backend dependencies -RUN apk update && \ - apk add \ - gcc \ - g++ \ - make \ - musl-dev \ - libffi-dev \ - python3-dev \ - postgresql-dev \ - geos-dev \ - proj-util \ - proj-dev +RUN apt update && apt install -y \ + gcc \ + g++ \ + make \ + libffi-dev \ + python3-dev \ + libpq-dev \ + proj-bin && \ + apt clean && \ + rm -rf /var/lib/apt/lists/* RUN pip install --upgrade pip -RUN pip install wheel +# RUN pip install wheel +# RUN pip install Cython==3.0.2 RUN pip install -r requirements.txt RUN pip install apscheduler==3.7.0