Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: mbfannan <[email protected]>
  • Loading branch information
mbfannan authored Nov 12, 2023
1 parent 9ce47a7 commit 47033ed
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ RUN mkdir -p /usr/src/app && \
chown -R node:node /usr/src/app
WORKDIR /usr/src/app

# Create a Python virtual environment and activate it
RUN python3 -m venv venv
ENV PATH="/usr/src/app/venv/bin:$PATH"

# Upgrade pip to the latest version
RUN pip install --upgrade pip

# Copy your Python requirements file and install Python dependencies
COPY --chown=node:node career-model/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Install Node.js dependencies
COPY --chown=node:node package.json.docker /usr/src/app/package.json
RUN npm install && \
npm cache clean --force

# Copy your Python requirements file and install Python dependencies
COPY --chown=node:node career-model/requirements.txt /usr/src/app/career-model/requirements.txt
RUN python3 -m pip install --no-cache-dir -r career-model/requirements.txt

# Copy the rest of your application's source code
COPY --chown=node:node . /usr/src/app

Expand Down

0 comments on commit 47033ed

Please sign in to comment.