From c0c06329d2558fff11837bfc0726372b2af5b9b3 Mon Sep 17 00:00:00 2001 From: Mohammad Madanipour <97779392+mohammadll@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:55:12 +0330 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ea70821..34871c66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,9 @@ FROM python:3.11-alpine - RUN apk add --no-cache shadow - -RUN seradd -ms /bin/bash admin - +RUN useradd -ms /bin/bash admin WORKDIR /code - - COPY ./requirements.txt /code/requirements.txt - - RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt - - COPY ./app /code/app - - RUN chown -R admin /code/app/* - USER admin