-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG PARENT_IMAGE
FROM $PARENT_IMAGE
ARG PYTHON_VERSION=3.9.15
RUN apt-get update && \
echo Y | apt-get install vim
ENV CODE_DIR=/home/user
WORKDIR ${CODE_DIR}
# make container user to be the same as host user (non-root user)
# default UID and GID are 1000 for general user
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID mygroup && \
useradd -u $UID -g mygroup -m myuser
# change default user from root to myuser
USER myuser
RUN pip3 install --upgrade pip && \
pip install stable-baselines3[extra]==2.3.2 && \
pip install tensorboard==2.18.0 && \
pip install pyyaml==6.0.2 && \
pip install scipy==1.13.0 && \
pip install wandb==0.18.7 && \
pip install numpy==1.26.3 && \
pip cache purge
CMD ["/bin/bash"]