Skip to content

Commit

Permalink
Merge pull request #2016 from locustio/fix-docker-image-permissions
Browse files Browse the repository at this point in the history
Dockerfile: Fix permissions in venv to allow installing packages in derived images
  • Loading branch information
cyberw authored Feb 14, 2022
2 parents d584820 + 32ccff8 commit 0e862c6
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 0e862c6

Please sign in to comment.