From 9fef287c06fa53aebea9043006717df0055d237b Mon Sep 17 00:00:00 2001 From: vsoch Date: Sat, 21 Jan 2023 12:59:15 -0700 Subject: [PATCH] ensure container has time in it Signed-off-by: vsoch --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fb9bff..367a0d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,12 @@ COPY ./requirements.txt /requirements.txt EXPOSE ${port} ENV PYTHONPATH=/usr/lib/flux/python3.8:/code -# For easier Python development. -RUN python3 -m pip install -r /requirements.txt +# For easier Python development, and install time for timed commands +RUN python3 -m pip install -r /requirements.txt && \ + apt-get update && apt-get install -y time && \ + apt-get clean && \ + apt-get autoremove && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* WORKDIR /code COPY . /code