From eee8608891fb63bae1223d6c5b1bab7145cd378d Mon Sep 17 00:00:00 2001 From: 1Rayan Date: Mon, 7 Oct 2024 01:42:56 +0300 Subject: [PATCH] update docker file --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35d7b5e0..d8434548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim +FROM python:3.12-slim RUN apt-get update && \ apt-get install -y --no-install-recommends build-essential libpq-dev && \ @@ -6,13 +6,11 @@ RUN apt-get update && \ WORKDIR /app -COPY analytics/requirements.txt . +COPY /analytics/ /app RUN pip install --upgrade pip setuptools wheel -RUN pip install -r requirements.txt - -COPY analytics/ . +RUN pip install --no-cache-dir -r /app/requirements.txt EXPOSE 5153 -CMD ["python", "app.py"] \ No newline at end of file +CMD ["python", "app/app.py"]