-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* use ubuntu:jammy instead of focal for docker file Also switch to Python 3.10 to match the version of python in Jammy. Signed-off-by: Chen Lihui <[email protected]> (cherry picked from commit 86bc311) Co-authored-by: Chen Lihui <[email protected]>
- Loading branch information
1 parent
18dad5c
commit 6cb7487
Showing
2 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This dockerfile is expecting to be run with the following build command | ||
# (from the root of the git repository): | ||
# | ||
# docker build -f docker/image/Dockerfile . | ||
|
||
FROM ubuntu:jammy | ||
|
||
ARG user=rosindex | ||
ARG uid=1000 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y \ | ||
git-all \ | ||
graphviz \ | ||
make \ | ||
python3-pip && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN useradd -u $uid -m $user | ||
ENV HOME=/home/$user | ||
ENV PATH=/home/$user/.local/bin:$PATH | ||
WORKDIR /tmp/doc_repository | ||
|
||
USER $user | ||
|
||
CMD pip3 install --no-warn-script-location --user --upgrade -r requirements.txt && make multiversion |