-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
69 lines (50 loc) · 1.64 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM nvidia/cuda:11.7.0-cudnn8-devel-ubuntu22.04
# # #WORKDIR ./cuda/
# USER root
# RUN sudo groupadd docker
# RUN sudo usermod -aG docker $USER
# RUN newgrp docker
# RUN apt-get update \
# && apt-get install -y --no-install-recommends \
# vim \
# && apt-get autoremove -yqq --purge \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/* \
# && apt-get install psmisc
USER "${AIRFLOW_UID:-$(id -u)}:${AIRFLOW_GID:-0}"
#COPY ./cuda/ ./cuda/
# RUN export AIRFLOW_DAEMON_USER="${AIRFLOW_DAEMON_USER:-airflow}"
# RUN export AIRFLOW_DAEMON_GROUP="${AIRFLOW_DAEMON_GROUP:-airflow}"
FROM apache/airflow:2.4.0-python3.8
RUN python -m pip install --upgrade pip
# FROM apache/airflow:slim-2.4.0-python3.8 ##This doenst work
#COPY ./cuda/ ./cuda/
USER root
# RUN sudo chmod 777 /opt/airflow/dags
# RUN sudo chmod 777 /opt/airflow/logs
# RUN sudo chmod 777 /opt/airflow/plugins
# RUN sudo chmod 777 /var/run/docker.sock
RUN apt-get update
RUN apt-get -y install gcc
RUN apt-get -y install python-dev
RUN apt-get -y install python3-dev
RUN apt-get -y install apt-utils
RUN apt-get -y install sudo
RUN apt-get -y install vim
RUN apt-get -y install lsof
RUN apt-get -y install psmisc
RUN apt-get -y install net-tools
USER "${AIRFLOW_UID:-$(id -u)}:${AIRFLOW_GID:-0}"
#WORKDIR ..
COPY requirements.txt .
# COPY requirements.txt /requirements.txt
RUN pip install -r requirements.txt
#USER root
#RUN sudo chmod -R 777 /home/airflow/.cache
#USER airflow
# RUN apt-get update
# RUN apt install python3
# RUN apt-get -y install python3-pip
# WORKDIR /opt/airflow/logs
# COPY /home/hojun/airflow/logs/requirements.txt .
# RUN pip install -r requirements.txt