Skip to content

Commit

Permalink
chore: Dockerfile cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
dtejadav committed Oct 28, 2024
1 parent b985c32 commit 43c25ac
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]

0 comments on commit 43c25ac

Please sign in to comment.