diff --git a/Dockerfile b/Dockerfile index dfc74a6..844af94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM python:3.11-alpine # setup environment variable -ENV PYTHONDONTWRITEBYTECODE=1 -ENV PYTHONUNBUFFERED=1 +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 RUN python -m pip install --upgrade pip @@ -12,20 +12,9 @@ RUN apk update && apk upgrade -i -a --update-cache WORKDIR /usr/src/app # Installing requirements from requirements.txt file -# COPY requirements.txt /usr/src/app -# RUN pip install -r requirements.txt +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt -# Installing secrets_safe library -# COPY secrets_safe /usr/src/app/secrets_safe +COPY src/ . -# Installing requirements from requirements.txt file -COPY requirements.txt /usr/src/app -RUN pip install -r requirements.txt - - - -COPY src /src - -COPY main.py /main.py - -ENTRYPOINT ["python", "/main.py"] +ENTRYPOINT ["python", "main.py"] \ No newline at end of file