-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (37 loc) · 977 Bytes
/
Dockerfile
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
38
39
40
41
42
43
44
# Base image
ARG VARIANT=20.04
FROM ubuntu:${VARIANT}
# Non-interactive installation
ARG DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update
RUN apt-get upgrade -y
# # NVIDIA
# RUN apt-get install nvidia-container-runtime
# Python
RUN apt-get update && apt-get -y install --no-install-recommends \
python3.8 \
python3.8-dev \
python3-pip \
python3-wheel \
build-essential \
python-is-python3
# RUN pip install --upgrade pip, wheel, setuptools
# X11
RUN apt-get update && apt-get -y install --no-install-recommends x11-apps
# Qt
RUN apt-get update && apt-get -y install --no-install-recommends qt5-default
# Build directory architecture
RUN mkdir /shared_data
RUN mkdir /shared_data/projects
RUN mkdir /shared_data/datasets
RUN mkdir /shared_data/models
WORKDIR /app
# Application
COPY src/ src/
COPY config/ config/
COPY run_dc_task.py .
COPY requirements.txt .
RUN pip install -r requirements.txt
# Initialize
CMD ["bash"]