mirror of https://github.com/locustio/locust.git
Do a first run inside Dockerfile to create .pyc files
This commit is contained in:
parent
4c24bac302
commit
73e5b94eea
|
@ -44,6 +44,8 @@ ENV PYTHONUNBUFFERED=1
|
|||
RUN useradd --create-home locust
|
||||
# ensure correct permissions
|
||||
RUN chown -R locust /opt/venv
|
||||
# perform initial bytecode compilation (brings down total startup time from ~0.9s to ~0.6s)
|
||||
RUN locust --version
|
||||
USER locust
|
||||
WORKDIR /home/locust
|
||||
EXPOSE 8089 5557
|
||||
|
|
|
@ -23,6 +23,8 @@ ENV PYTHONUNBUFFERED=1
|
|||
RUN useradd --create-home locust
|
||||
# ensure correct permissions
|
||||
RUN chown -R locust /opt/venv
|
||||
# perform initial bytecode compilation (brings down total startup time from ~0.9s to ~0.6s)
|
||||
RUN locust --version
|
||||
USER locust
|
||||
WORKDIR /home/locust
|
||||
EXPOSE 8089 5557
|
||||
|
|
Loading…
Reference in New Issue