Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile.bld
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ RUN groupadd --gid $GROUPID $GROUPNAME && useradd --uid $USERID --gid $GROUPID -

# Install the tools required for the project
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv
python3 \
python3-pip \
python3-venv

# Copy requirements file and install all the required python packages
WORKDIR /app
COPY python /app
# RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
RUN python3 -m venv appenv \
&& . appenv/bin/activate \
&& pip install --no-cache-dir -r requirements.txt
&& . appenv/bin/activate \
&& pip install --no-cache-dir -r requirements.txt

# Change the user to newly created user
USER $USERNAME
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ RUN groupadd --gid $GROUPID $GROUPNAME && useradd --uid $USERID --gid $GROUPID -

# Install the tools required for the project
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-venv
python3 \
python3-pip \
python3-venv

# Copy requirements file and install all the required python packages
WORKDIR /app
COPY python/requirements.txt /app
# RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
RUN python3 -m venv appenv \
&& . appenv/bin/activate \
&& pip install --no-cache-dir -r requirements.txt
&& . appenv/bin/activate \
&& pip install --no-cache-dir -r requirements.txt

# Stage 02: Run
FROM python:3.10-slim
Expand Down