Skip to content

Commit 9fef287

Browse files
committed
ensure container has time in it
Signed-off-by: vsoch <[email protected]>
1 parent 81d90ea commit 9fef287

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ COPY ./requirements.txt /requirements.txt
1818
EXPOSE ${port}
1919
ENV PYTHONPATH=/usr/lib/flux/python3.8:/code
2020

21-
# For easier Python development.
22-
RUN python3 -m pip install -r /requirements.txt
21+
# For easier Python development, and install time for timed commands
22+
RUN python3 -m pip install -r /requirements.txt && \
23+
apt-get update && apt-get install -y time && \
24+
apt-get clean && \
25+
apt-get autoremove && \
26+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2327

2428
WORKDIR /code
2529
COPY . /code

0 commit comments

Comments
 (0)