-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 742 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (22 loc) · 742 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
# Use an official Python image as the base
FROM python:3.8-slim
# Set environment variables
ENV AIRFLOW_HOME=/airflow
ENV AIRFLOW__CORE__LOAD_EXAMPLES=False
# Install required packages
RUN pip install apache-airflow
# Install Helm and other dependencies
RUN apt-get update && \
apt-get install -y curl && \
apt-get install -y nano && \
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 && \
chmod +x get_helm.sh && \
./get_helm.sh
# Create a dags directory
RUN mkdir -p $AIRFLOW_HOME/dags
# Initialize the database
RUN airflow db init
# Expose the necessary port
EXPOSE 8080
# Start Airflow webserver
CMD ["airflow", "webserver", "--port", "8080", "--host", "0.0.0.0"]