Skip to content

Commit

Permalink
Fix docbot Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Aug 26, 2024
1 parent ad9cdd9 commit e5e2752
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ai/docbot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ ENV LANGUAGE en_US.UTF-8
COPY requirements.txt .
RUN pip install -r requirements.txt

# Create non-root user
RUN groupadd -g 900 mesop && useradd -u 900 -s /bin/bash -g mesop mesop
# Create non-root user and give write access to /opt/venv
RUN groupadd -g 900 mesop && \
useradd -u 900 -s /bin/bash -g mesop mesop && \
chown -R mesop:mesop /opt/venv && chmod -R 777 /opt/venv

USER mesop

# Add app code here
Expand Down

0 comments on commit e5e2752

Please sign in to comment.