-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerFile
More file actions
37 lines (29 loc) · 700 Bytes
/
Copy pathDockerFile
File metadata and controls
37 lines (29 loc) · 700 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
31
32
33
34
35
36
37
FROM tensorflow/tensorflow:2.9.1-gpu-jupyter
ENV DEBIAN_FRONTEND=noninteractive
# update dependencies
RUN apt-get update \
&& apt-get install -y \
tree \
wget \
&& pip install --upgrade pip \
&& rm -rf /var/lib/apt/lists/*
# OpenCV
RUN apt-get update \
&& apt-get install -y python3-opencv \
&& pip install -U opencv-python
# Dev modules
RUN pip install -U \
pandas \
scikit-image \
imgaug \
scikit-learn \
requests \
pycocotools
# Run as user not as root
ARG USER=ai
ARG GID
ARG UID
RUN groupadd --gid ${GID} ${USER} \
&& useradd -rm -d /home/${USER} -s /bin/bash -g ${GID} -u ${UID} ${USER}
USER ${USER}
WORKDIR /home/${USER}