-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 828 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 828 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
# FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04
# FROM kaggle/python:latest
# us-docker.pkg.dev/colab-images/public/runtime:latest
FROM europe-docker.pkg.dev/colab-images/public/runtime:latest
# RUN pip3 install cuda-python==11.8.0
# RUN apt-get update && apt-get install -y python3-pip \
# && pip3 install \
# nvidia-cudnn-cu11==8.6.0.163 \
# tensorflow==2.12.0 \
# matplotlib \
# tensorflow-datasets==4.9.2 \
# ipywidgets==7.7.1 \
# numpy
ARG USERNAME=zero
ARG USER_UID=1000
ARG USER_GID=$USER_UID
# ENV ROS_DISTRO=python
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& apt-get update \
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME