Skip to content

Commit

Permalink
fix: Update Dockerfile to address security issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wktls63 committed Oct 4, 2024
1 parent aca80ad commit 31d89c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/content-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ RUN useradd -m appuser
# Set the working directory
WORKDIR /app

# Change ownership of the working directory to the non-root user
RUN chown -R appuser /app

# Copy only requirements.txt and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
Expand Down

0 comments on commit 31d89c0

Please sign in to comment.