Skip to content

Commit

Permalink
Dockerfile: Fix permissions in venv to allow installing packages in d…
Browse files Browse the repository at this point in the history
…erived images. Fixes #2015
  • Loading branch information
cyberw committed Feb 14, 2022
1 parent d584820 commit 32ccff8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ EXPOSE 8089 5557
# turn off python output buffering
ENV PYTHONUNBUFFERED=1
RUN useradd --create-home locust
# ensure correct permissions
RUN chown -R locust /opt/venv
USER locust
WORKDIR /home/locust
ENTRYPOINT ["locust"]

0 comments on commit 32ccff8

Please sign in to comment.