-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (45 loc) · 1.33 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
# Base image
FROM apache/airflow:slim-2.10.4-python3.10
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip uninstall multipart -y
RUN pip install --extra-index-url=https://pypi.nvidia.com "cudf-cu12==24.12.*" "dask-cudf-cu12==24.12.*" "cuml-cu12==24.12.*"
RUN pip install optuna plotly-resampler tune_sklearn
USER root
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
wget \
git \
unzip \
libpq-dev \
libssl-dev \
libffi-dev \
gcc \
g++ \
&& apt-get clean
USER airflow
# # Create virtual environment
# RUN python -m venv /workspace/venv
# # Set environment variables
# ENV PATH="/workspace/venv/bin:$PATH"
# # Activate virtual environment
# RUN echo "source /workspace/venv/bin/activate" >> ~/.bashrc
# # Install Python libraries
# COPY requirements.txt /tmp/
# RUN pip install --upgrade pip && pip install -r /tmp/requirements.txt
# RUN pip3 install flask-session
# # Run entrypoint script
# COPY entrypoint.sh /usr/local/bin/
# RUN chmod +x /usr/local/bin/entrypoint.sh
# RUN . /usr/local/bin/entrypoint.sh
# RUN . ~/.bashrc
# # Expose necessary ports
EXPOSE 3000 5000 8080 1234
# ENV AIRFLOW_HOME=/opt/airflow
# # # Default command
# # CMD [ "bash" ]
# COPY airflow.sh /usr/local/bin/
# RUN chmod +x /usr/local/bin/airflow.sh
# ENTRYPOINT [ "airflow.sh" ]