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